approved

question about the "ontouch" event, I made a small test app and ran it on
iPad, and I do see the ongesture event, but I never see the "ontouch" event
being sent, even when I put down two fingers at a time. It seems like
ongesture always fires instead. Is there a test case that shows ontouch
event being generated?

<canvas width="100%" height="100%">
    <view width="100" height="100" bgcolor="red" align="center"
valign="middle" xoffset="-5" yoffset="-50">
      <dragstate name="drg"/>
      <handler name="onmousedown">
        drg.setAttribute('applied', true);
      </handler>
      <handler name="onmouseup">
        drg.setAttribute('applied', false);
      </handler>
        <handler name="ongesture" args="g">
          Debug.info('ongesture', g);
            this.setAttribute('rotation', g.rotation);
            this.setAttribute('xscale', g.scale);
            this.setAttribute('yscale', g.scale);
        </handler>
        <handler name="ontouch">
          Debug.info("ontouch");
        </handler>

    </view>
</canvas>

On Sat, Jan 8, 2011 at 1:31 AM, Max Carlson <[email protected]> wrote:

> Change maxcarlson-20110107-oKG by maxcarl...@friendly on 2011-01-07
> 22:23:02 PST
>    in /Users/maxcarlson/openlaszlo/trunk-clean
>    for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Add ontouch event to handle multitouch events, onmouseupoutside
>
> Bugs Fixed: LPP-9598 - Add API to get raw x/y coordinates for touch events
>
> Technical Reviewer: hminsky
> QA Reviewer: ptw
>
> Release Notes: view.ontouch is sent when a multitouch event happens.
>
> Details: LzSprite - Don't use identity test when it's not needed.  Simplify
> ontouchend handling, send onmouseupoutside event where appropriate.  Send
> ontouch events when more than one finger is down (currently only available
> on Webkit on iOS).
>
> keyboardandmouse - Add ontouch and ongesture events to test
>
> LzMouseKernel - Comment out unused global touch event processing.
>
> LzModeManager - Explicitly send ontouch and ongesture events.
>
> LaszloView - Add ontouch event.
>
> Tests: test/lfc/legals/keyboardandmouse.lzx?lzr=dhtml&lzt=html sends
> onmouseupoutside on iOS and Android, ongesture and ontouch are sent for iOS
>
> Files:
> M       test/lfc/legals/keyboardandmouse.lzx
> 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-20110107-oKG.tar
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to