You really need to run it on a device. An iphone is enough. ----- Reply message ----- From: "Henry Minsky" <[email protected]> To: "Max Carlson" <[email protected]> Cc: "P T Withington" <[email protected]>, <[email protected]> Subject: For Review: Change maxcarlson-20101220-Yu9 Summary: Add support for native iOS gesture events Date: Mon, Dec 20, 2010 5:59 pm Do you know if thereis any way to generate the gesture events in the iOS emulator, or does it need to be run on a physical iPhone / iPad?
On Mon, Dec 20, 2010 at 7:22 PM, Max Carlson <[email protected]> wrote: Change maxcarlson-20101220-Yu9 by maxcarl...@friendly on 2010-12-20 16:04:51 PST in /Users/maxcarlson/openlaszlo/trunk-clean for http://svn.openlaszlo.org/openlaszlo/trunk Summary: Add support for native iOS gesture events Bugs Fixed: LPP-8904 - Support touch and gesture events Technical Reviewer: ptw QA Reviewer: hminsky Release Notes: views can now receive gesture events for DHTML apps on iOS, e.g. <canvas> <view width="100" height="100" bgcolor="red" align="center" valign="middle" xoffset="-5" yoffset="-50"> <handler name="ongesture" args="g"> this.setAttribute('rotation', g.rotation); this.setAttribute('xscale', g.scale); this.setAttribute('yscale', g.scale); </handler> </view> </canvas> Details: LzSprite - Listen for ontouch/gesturestart events, register for related events after they're received. Add processing for ongesturechange that sends an event directly to LzMouseKernel with the relevant metadata. Don't send extra mousedown event for touchstart events. Add support for touchcancel events. LzMouseKernel - Add value arg to __sendEvent, forward to callback. LzModeManager - Add optional value arg, explicitly handle ongesture events. LaszloView - Add ongesture event Tests: This test uses ongesture/the pinch gesture for scaling/zooming in iOS DHTML: <canvas> <view width="100" height="100" bgcolor="red" align="center" valign="middle" xoffset="-5" yoffset="-50"> <handler name="ongesture" args="g"> this.setAttribute('rotation', g.rotation); this.setAttribute('xscale', g.scale); this.setAttribute('yscale', g.scale); </handler> </view> </canvas> Files: M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js M WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js M WEB-INF/lps/lfc/services/LzModeManager.lzs M WEB-INF/lps/lfc/views/LaszloView.lzs Changeset: http://svn.openlaszlo.org/openlaszlo/patches/maxcarlson-20101220-Yu9.tar -- Henry Minsky Software Architect [email protected]
