Bug 330854 - Support "Scrollwhell drag to pan"
Summary: Support "Scrollwhell drag to pan"
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 142336
  Show dependency tree
 
Reported: 2010-11-22 15:58 EST by Aurelien Pupier CLA
Modified: 2010-11-23 03:28 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Pupier CLA 2010-11-22 15:58:05 EST
In reference to this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=142336

* scrollwheel drag (or middle drag, or Ctrl-left drag) to pan.  As the user
drags, whatever was under the pointer at the time the drag was initiated would
remain under the pointer throughought the drag until, of course, the drag was
released.

I search a little into it, it seems to me that there is a missing capture a event combination:
in org.eclipse.gef.ui.parts.DomainEventDispatcher, in the method dispatchMouseMoved(org.eclipse.swt.events.MouseEvent me), it doesn't detect that the scrollwheel is pushed. The state mask seems to not be properly updated during dispatchMousepressed(org.eclipse.swt.events.MouseEvent me).
Comment 1 Aurelien Pupier CLA 2010-11-23 03:28:16 EST
Randy Hudson outlined that this kind of feature exists with space bar and mouse button 1 pressed.

I was not aware of this shortcut, perhaps "Scrollwhell drag to pan" is more intuitive as it is like in browsers.
Will it be possible to link also this shortcut to pan?