Commit graph

14 commits

Author SHA1 Message Date
Rachel Fenichel
9eb88707e0 Fix comment in dragged_connection_manager.js 2020-05-17 20:06:13 -04:00
Rachel Fenichel
a6cbadc23f Make event filtering stricter for move events
Ported from blockly#1892
2020-05-17 20:06:13 -04:00
Rachel Fenichel
fc0da3e070 All remaining lint in core 2018-05-02 15:32:28 -07:00
Rachel Fenichel
48b1648013 Move block animation code to a new file 2018-04-16 15:33:10 -07:00
DD
92023c45ce Code review 2018-02-16 17:37:49 -05:00
DD
534eb28e83 Fix comments 2018-02-15 18:13:06 -05:00
DD
353fa3a078 Immediately undo move to outside blockly 2018-02-15 18:13:06 -05:00
DD
cc883b69c3 Only fire events when dragged outside 2018-02-15 18:13:06 -05:00
DD
43780723e1 Send block drag events 2018-02-15 18:13:06 -05:00
Rachel Fenichel
5ec9195ff1 Bring the most recently edited stack to the front at the end of a drag. () 2017-10-19 12:03:20 -04:00
Paul Kaplan
4b77d04bbd Merge remote-tracking branch 'google/develop' into pull-connection-effect-fix 2017-06-30 14:09:53 -04:00
Rachel Fenichel
de67108b17 Fix ()
Fix "Connection UI Effect not playing on block connect"
2017-06-29 15:13:56 -07:00
Rachel Fenichel
6275e1137c New dragging! Merge from google ()
Port of a major refactor from Blockly.  Dragging logic now lives in block_dragger.js, gesture.js, workspace_dragger.js, dragged_connection_manager.js (unused by scratch-blocks), and insertion_marker_manager.js (used only by scratch-blocks).
2017-05-22 13:08:22 -07:00
Rachel Fenichel
98914fcf6b Dragging changes, rebased on develop ()
* Add block drag surface translateSurfaceBy

* Add dragged connection manager

* Add gesture.js

* Add GestureHandler

* Implemented gesture skeleton

* Most basic workspace dragging

* Add dragged connection manager

* cleanup

* doc

* more cleanup

* Add gesture handler

* Add translateSurfaceInternal

* core/block_dragger.js

* cleanup

* Pull in changes to dragged connection manager

* Pull in changes to dragged connection manager

* comments

* more annotations

* Add workspace dragger

* Add coordinate annotations

* Start on block dragging

* Limit number of concurrent gestures

* Add some TODOs

* start using dragged connection manager

* Set origin correctly for dragging blocks

* Connect or delete at the end of a block drag.

* cleanup

* handle field clicks and block + workspace right-clicks

* move code into BlockDragger class, but still reach into Gesture internals a lot

* Clean up block dragger

* Call blockDragger constructor with correct arguments

* Enable block dragging in a mutator workspace

* Add workspace dragger

* click todos

* Drag flyout with background

* more dragging from flyout

* nit

* fix dragging from flyouts

* Remove unused code and rename gestureHandler to gestureDB

* Rename gesture handler

* Added some jsdoc in gesture.js

* Update some docs

* Move some code to block_svg and clean up code

* Lots of coordinate annotations

* Fix block dragging when zoomed.

* Remove built files from branch

* More dragging work ()

-- Drag bubbles while dragging blocks
-- Use bindEventWithChecks to work in touch on Android. Not tested anywhere else yet.
-- Handle dragging blocks while zoomed
-- Handle dragging blocks in mutators
-- Handle right-clicks (I hope)
-- Removed lots of unused code

* More dragging work ()

- Removed gestureDB
- Removing uses of terminateDrag
- Cleaned up disposal code

* Dragging bugfixes ()

- Get rid of flyout.dragMode_ and blockly.dragMode_
- Make drags from the flyout start from the top block in the group
- Block tooltips from being scheduled or shown during gestures
- Don't resize mutator bubbles mid-drag

* Fix events in new dragging ()

* rebuild for testing

* unbuild

* Fix events

* rebuild

* Fix up cursors

* Use language files from develop

* Remove handled TODOS

* attempt to fix IE rerendering bug, and recalculate workspace positions on scroll

* Rebuild all the things

* Comment cleanup; annotations; delete unused variables.
2017-05-05 12:42:53 -07:00