music-inpainting-ts icon indicating copy to clipboard operation
music-inpainting-ts copied to clipboard

Implement cancelCurrentInteraction in NONOTO

Open tbazin opened this issue 2 years ago • 0 comments

Issue

The cancelCurrentInteraction is currently unimplemented in SheetInpainterGraphicalView.

Comment

This is not trivial with the current layout, which listens to 'click' events on the individual overlay boxes.

Idea

Ideally, should refactor SheetInpainterGraphicalView to listen to the click-drag selection interaction on the container, allowing to cancel an interaction at the container level.

We should then toggle/untoggle the underlying boxes on 'pointerenter'/'pointerleave' similarly to the SpectrogramInpainterGraphicalView. This would have the additional benefit of enabling multi-box selections.

tbazin avatar Oct 14 '22 08:10 tbazin