Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Double-click on an editpart that is partially hidden causes editpart to be revealed but misses doubl
Double-click on an editpart that is partially hidden causes editpart to be revealed but misses doubl [message #516627] Wed, 24 February 2010 10:50
Vasanth Velusamy is currently offline Vasanth Velusamy
Messages: 31
Registered: July 2009
Member
If an editpart is partially hidden from view (where scrolling would
reveal it), and if you double click on the visible portion of the
editpart, double-click doesn't work. Instead, it behaves as if there
were two single mouse clicks.

The first click of the double-click causes the viewer to scroll and show
the editpart in full (or as much as possible). Since the mouse's x-y
location has changed now, the second click of the double-click acts as a
second single-click and ends up selecting the editpart (or any other
child editpart that is under the mouse after it has scrolled).

You can try this out in the logic gates example.

The root cause is that there is no differentiation between a single
click and the first click in a double click. There have been posts in
this forum earlier which talk about it, and there was a suggestion to
use a timer to distinguish the two. Such a solution can be used in this
case too.

If it is agreed that this is a valid issue, I can enter a defect and
post a couple of possible solutions.

Thanks,
Vasanth
Previous Topic:Custom connection decoration
Next Topic:How to change the style of grids in ShapeEditor
Goto Forum:
  


Current Time: Thu Oct 23 09:01:34 GMT 2014

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

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