Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

700 bytes added, 05:47, 16 December 2011
Remaining Test Reviews
|114
|test_mousePos.html
|diogogmt
|
|
|
|
|A summary of the test: |*Move the mouse outside the browser boundaries. *Move the mouse back inside the browser. *Checks if movementXY were set to zero, since the last refPoint is unknownThe problem is that synthesizeMouse doesn't move the mouse outside the boundaries of the specified element. If the X/Y coords passed to synthesizeMouse are bigger than the X/Y of the element receiving the event, it won't move the cursor. I'm logging all the screen/client/movementXY values, and if the coords passed to synthesizeMouse are bigger than the boundaries of the element receiving the mousemove, the test will break, since the mouse is never moved.   [http://pastebin.com/MhP62BtC code]  
|-
|115
1
edit