Skip to content

Commit

Permalink
core: pass drag event to innermost editor canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Oct 24, 2023
1 parent e079450 commit 640b337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/Sandblocks-Core/SBBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2849,9 +2849,9 @@ SBBlock >> startDrag: anEvent [
comment: 'if the preference is on, we absorb the startDrag events'
active: 1
do: {[anEvent yellowButtonPressed and: [SBPreferences rightClickContextMenu]]}) ifTrue: [ | canvas |
canvas := self sandblockEditor canvas scroller.
canvas := self ownerThatIsA: SBEditorCanvas.
anEvent hand newMouseFocus: canvas.
^ canvas startDrag: (anEvent transformBy: self transformFromWorld asMatrixTransform2x3 inverseTransformation)].
^ canvas startDrag: (anEvent transformBy: (self transformFrom: canvas) asMatrixTransform2x3 inverseTransformation)].

((self hasDecorator: SBMoveDecorator) not or: [anEvent controlKeyPressed or: [anEvent commandKeyPressed]]) ifTrue: [^ self pickUp: anEvent].

Expand Down

0 comments on commit 640b337

Please sign in to comment.