Detect "mouseleave" event [message #875246] |
Tue, 22 May 2012 08:00  |
Eclipse User |
|
|
|
I've played with RAP 1.5 demos and I've noticed some strange behavior.
For the tableviewer example, if I scroll the table using the mouse and I release the mouse outside the browser window, when I return to the browser window the table is scrolled on "mousemove".
The "mouseup" event is not captured since it is outside the browser window, but is it possible to capture the "mouseleave" event for the top most Qooxdoo parent and notify all its children?
Also can you, please, tell me where can I find some documentation for the RAP client Javascript API?
|
|
|
Re: Detect "mouseleave" event [message #876751 is a reply to message #875246] |
Fri, 25 May 2012 04:29  |
Eclipse User |
|
|
|
Hi.
> The "mouseup" event is not captured since it is outside the browser
That is correct.
> window, but is it possible to capture the "mouseleave" event for the top
> most Qooxdoo parent and notify all its children?
Then if you would scroll/drag something and temporarily leave the window
by accident, you would have to start the drag anew, which i would
consider even more annoying.
>
> Also can you, please, tell me where can I find some documentation for
> the RAP client Javascript API?
There is no documentation since there is no public API. We are aware
this is a problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=324434
The client is a fork of Qooxdoo 0.7.4, but most of the API has been
removed or slightly changed. Still, here it is:
http://demo.qooxdoo.org/0.7.x/apiviewer/
If you wish to change/add client behavior, you might want to look at the
ClientScripting project: http://wiki.eclipse.org/RAP/ClientScripting
Greetings,
Tim
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.03870 seconds