11-07-2011 09:42 AM
I'm trying to detect when the trackball is used. However, the onmousemove event does not fire when the mouse pointer is at the bottom of the screen (I guess this is because the mouse is not moving at this point). However, does anyone know what event I can listen to detect trackball events (even when mouse pointer is at window boundary)?
Here is a snippet of code that demonstrates the problem. Try to position the mouse at the bottom of the screen before loading it as it will display a lot of alert boxes as you move the mouse down the page.
<!DOCTYPE HTML> <html> <body onmousemove="alert('moving...');"> 1<br/> 2<br/> 3<br/> 4<br/> 5<br/> 6<br/> 7<br/> 8<br/> 9<br/> 10<br/> 11<br/> 12<br/> 13<br/> 14<br/> 15<br/> </body> </html>
02-04-2012 08:14 AM
03-09-2012 01:20 PM
Thanks for the suggestion. I can't use focus navigation as I am actually trying to simulate scrolling on a Sencha Touch web page, which I would be able to do if the trackball fired any events after the mouse reached the bottom of the page. It's surprising that the trackball does not let the web page know that the user is using it.
So, I still need a solution for this one.