SWT, XULrunner, OS X and mouse hover events

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SWT, XULrunner, OS X and mouse hover events

Chris Alexander
Hi all,

We have an Eclipse SWT (http://www.eclipse.org/swt/) application that makes use of several SWT Browser controls, backed by XULrunner (https://developer.mozilla.org/en/docs/XULRunner). We are using SWT 4.2 and XULrunner 10.0.4esr (the latest release that is supported by SWT).

We are experiencing an issue only on OS X (we have tried every variant of Linux and Windows we can reasonably get our hands on). The issue is that within the browser window, mouse over and exit events are not triggered unless the element is clicked. For example, we have some content that uses Twitter Bootstrap’s tooltips (http://twitter.github.com/bootstrap/javascript.html#tooltips) – on Windows and Linux these function as expected, but on OS X the popups do not appear until the button they are on is clicked, and do not disappear again until they are clicked again.

There is an open bug with SWT for this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=246830) which references an Apple issue, but unfortunately we can’t seem to get access to that issue to see its status.

I have created this gist which minimally reproduces the issue: https://gist.github.com/4665145 (see notes at bottom for configuration and usage).

First of all, we were wondering if anyone has also experienced this issue and found a way to fix it. We were also wondering if anyone is able to provide a workaround for this issue. I have started to formulate something around using SWT’s mouse listeners to track the cursor and trigger the events manually but have not made much progress with such an approach.

Any input or suggestions would be very much appreciated.

Chris
_______________________________________________
dev-embedding mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-embedding