aboutsummaryrefslogtreecommitdiff
path: root/src/library_html5.js
AgeCommit message (Collapse)Author
2014-03-16Fix unregistering of event handlers (all params of removeEventListener must ↵Jukka Jylänki
*exactly* match the signature used in registration, up to useCapture) and a closure name rename problem. Fixes #2230.
2014-03-13Implement support for Webkit mouse wheel events. Add new interactive mouse ↵Jukka Jylänki
test. Checked on OSX Safari 6.0.5. Fixes #2219.
2014-03-13Manually implement mouse movementXY in HTML5 mousemove events when the ↵Jukka Jylänki
browser does not provide the data. Fixes part 2) from issue #2219.
2014-03-13Fix typo with missing parentheses from previous commit that broke keyevents ↵Jukka Jylänki
from performing deferred fullscreen/pointerlock requests.
2014-03-12Fix IE fullscreen requests to not run in mousedown events, since IE doesn't ↵Jukka Jylänki
allow them. Related to #2219.
2014-03-10fix mouse wheel deltas for closure compiler in html5 API, and add some ↵Alon Zakai
closure testing; #2214
2014-02-26Add new fields to EmscriptenFullscreenChangeEvent structure that report the ↵Jukka Jylänki
new pixel sizes of the fullscreen element, as well as the whole screen size. These can be used to read and adjust the rendering canvas size appropriately when transitioning between fullscreen modes. Thanks to Joel Croteau for the suggestion at https://groups.google.com/forum/#!topic/emscripten-discuss/qaTrOXWv1Oc . Bump version to 1.12.3 to update the cache after change to struct_info.json.
2014-02-21Apply coding conventions to library_html5.js.Jukka Jylänki
2014-02-21Add missing semicolons at the end of statements for library_html5.js.Jukka Jylänki
2014-02-21Merge pull request #2148 from TV4Fun/html5fixesjuj
Fix bugs in HTML5 events when using SAFE_HEAP
2014-02-21Fix bugs in HTML5 events when using SAFE_HEAPJoel Croteau
This fixes a SAFE_HEAP_STORE is not a function error when using mouse events and a segfault that occurs when the beforeunload callback returns 0.
2014-02-21Squashed commit of the following:Joel Croteau
commit e2a8165560c7ec6be2d5650e0a3c6a4b520d1f56 Author: Joel Croteau <jcroteau@gmail.com> Date: Fri Feb 21 01:40:50 2014 -0800 Fix indentation in fillMouseEventData commit a5d620164e2ab7cb7ba61803c1eedb53f888f4cb Author: Joel Croteau <jcroteau@gmail.com> Date: Thu Feb 20 23:56:01 2014 -0800 Remove dependency on Browser.getMovementX/Y commit 2e4f0a4c5fc9ab1857e33862c49e20c1418320c2 Author: Joel Croteau <jcroteau@gmail.com> Date: Thu Feb 20 10:27:52 2014 -0800 Fix error that was causing FillMouseEventData to fail with SAFE_HEAP enabled The parentheses without semicolons generated when using SAFE_HEAP caused the compiled code to generate SAFE_HEAP_STORE is not a function errors. commit 470dbf6bcb3f88c809b3fea41e197680eda08c7e Author: Joel Croteau <jcroteau@gmail.com> Date: Thu Feb 20 07:12:02 2014 -0800 Fix bug causing incorrect movement values in mouse events This adds code to correctly set the movementX and movementY members of EmscriptenMouseEvents sent to callback functions by the HTML5 event library. movementX and movementY are not members of the base HTML5 mouse event, so we need to add extra code to retrieve them for our events.
2014-02-01Fix indentation in the comments added in the previous commit.Jukka Jylänki
2014-02-01Restrict touch events to not run deferred fullscreen+pointerlock requests ↵Jukka Jylänki
due to security implications. Mark down related bugzilla entry.
2014-02-01Add support for detecting whether screen orientation lock succeeds or fails. ↵Jukka Jylänki
Current testing suggests that Firefox Nightly on Android does not support orientation lock. See https://bugzilla.mozilla.org/show_bug.cgi?id=966480 .
2014-01-24Rename library_events to library_html5 and other suggested renamings. Add ↵Jukka Jylänki
better support for reporting EMSCRIPTEN_RESULT_NOT_SUPPORTED for unsupported features.