Harbs,

Can we wrap Hammer.js into more easily reusable TouchControllers in Royale?

IMO, it doesn't matter if it is a can of worms.  Royale hopefully makes it easy 
to replace TouchControllers.  So you can write one that mostly works and if 
someone offers a better one at some point, you can switch to that.  We won't 
bake one into the components and make the user wait for a next release to get 
improvements.

My 2 cents,
-Alex

On 7/4/18, 9:26 AM, "Harbs" <harbs.li...@gmail.com> wrote:

    Hi Carlos,
    
    Touch support is a can of worms.
    
    Basic touch support comes for free from Mouse Events. Anything more than 
that, gets very complex very quickly.
    
    I use Hammer.js in my own app to handle touch, and it works very well.
    
    
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhammerjs.github.io%2F&data=02%7C01%7Caharui%40adobe.com%7C69560100ba4747a4e52808d5e1cae3c3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636663183877387695&sdata=8By2PeXtYHtWAy9%2BwBFwvW3CdtAEx%2Fly80MJCO8oqtM%3D&reserved=0
 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhammerjs.github.io%2F&data=02%7C01%7Caharui%40adobe.com%7C69560100ba4747a4e52808d5e1cae3c3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636663183877387695&sdata=8By2PeXtYHtWAy9%2BwBFwvW3CdtAEx%2Fly80MJCO8oqtM%3D&reserved=0>
    
    Harbs
    
    > On Jul 4, 2018, at 4:47 PM, Carlos Rovira <carlosrov...@apache.org> wrote:
    > 
    > Hi,
    > 
    > I'm looking how to provide touch support for Drawer so users can slide 
out.
    > Is a default behavior in this kind of components.
    > 
    > I'm seeing there's no TouchEvent or something similar. I think this is an
    > important flaw, since not having this is like to say we are not prepared
    > for mobile and in the end we lost users.
    > 
    > 
    > 
    > -- 
    > Carlos Rovira
    > 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C69560100ba4747a4e52808d5e1cae3c3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636663183877387695&sdata=7j8FPbQ59eU0hMPOLfelshVI6DDqVCJtLrxGWpK4MVQ%3D&reserved=0
    
    

Reply via email to