Change 20100430-maxcarlson-O by [email protected] on 2010-04-30 
18:15:26 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add support for touch devices

Bugs Fixed: LPP-8904 - Support touch and gesture events

Technical Reviewer: ptw
QA Reviewer: hminsky

Details: LzSprite - Add touchevents capability, set to true for iphone/android. 
 Reorganize __setClickable() to register/unregister for touchstart/move/end 
events when capabilities.touchevents is true, clean up IE-specific event 
registration.  __mouseEvent() sends onmousedown/over/up/out/click events for 
touchevents.

LzMouseKernel - When touchevents is true, listen for global touchend events, 
and look at the position of the first finger to find the global mouse position.

embednew - Add iPad and Android browser detection, set appropriate default 
flags.  Shorten lookups, simplify getAbsolutePosition() for Safari.

Tests: LzPix dhtml now allows dragging on iPad, iPhone, Android and runs as 
before in Safari and other browsers.

Files:
M       WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M       WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
M       lps/includes/source/embednew.js

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100430-maxcarlson-O.tar

Reply via email to