Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » InfiniteCanvas scrollbars
InfiniteCanvas scrollbars [message #1732397] Mon, 16 May 2016 20:44 Go to next message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 90
Registered: July 2009
Location: Wellington, New Zealand

I have an FXViewer with large contents, so the scrollbars on the InfiniteCanvas need to be shown - I set the scroll bar policies to ALWAYS for both.

The scroll bar thumbs appear to respond to mouse events, though, which seems a bit odd. That is, if you manually click and drag on the scroll bar thumb, you will see the mouse events go through underneath the thumb and affect whatever parts are underneath. As you drag, if you move the mouse in towards the centre of the canvas, you will see the marquee outline.

This doesn't seem right. Moving the scrollbar thumb should not change the selection in the canvas - it doesn't happen if you use the scroll wheel or arrow keys to pan around. I'm guessing that the scrollbar is not consuming the mouse events so they end up looking through the other parts.

Is this intentional, or a bug? If intentional, I presume it means that I have my selection policy at the wrong place (although I just followed the Logo example for that).

Colin Sharples
CTG Games Ltd
Wellington, New Zealand
Re: InfiniteCanvas scrollbars [message #1732435 is a reply to message #1732397] Tue, 17 May 2016 11:00 Go to previous message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 163
Registered: March 2015
Senior Member
Hi Colin,

this is indeed a bug, thank you for the input. I reported the issue as bug #493773 [1]. Some time ago we evaluated if events that are already consumed should be processed by policies at all. But all JavaFX controls consume mouse events, i.e. ignoring all consumed events would make it impossible to use interaction policies on JavaFX controls. However, mouse events that originated from the scrollbars should not be processed until we find a proper mechanism to disable processing of certain events.

Previous Topic:[GEF4] Rotation using wrong angle
Next Topic:Dashed grid not working in GEF
Goto Forum:

Current Time: Wed Nov 14 02:11:38 GMT 2018

Powered by FUDForum. Page generated in 0.01906 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top