Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330854

Summary: Support "Scrollwhell drag to pan"
Product: [Tools] GEF Reporter: Aurelien Pupier <apupier>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Bug Depends on:    
Bug Blocks: 142336    

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?