[ 2 posts ]

Julien Sanchez

YUI Contributor

  • Offline
  • Profile

Is it possible to simulate touchevent on YUI 3.6.0 ?

Post Posted: Wed Aug 22, 2012 4:13 am
+0-
Hi,
In older versions of YUI, it's not possible to simulate touchevent (touchstart/touchmove/touchend), as we can read on the official yui website : http://yuilibrary.com/yui/docs/event/simulate.html (No touch event section)

But in the last version of YUI (3.6.0) it appears that is possible to simulate touchevent. When you look at this file : http://yuilibrary.com/yui/docs/api/file ... s.html#l60, touchevents are implemented in the script.

And if you look at this post : http://www.yuiblog.com/blog/2012/08/10/twiy/; YUI accept a pull request about gesture simulation.

But when I do
Code:
Y.one('mydiv').simulate('touchstart');
. I have this message :
Quote:
Error: simulate(): Event 'touchstart' can't be simulated. Use gesture-simulate module instead.


So i try to used "gesturemovestart" and do
Code:
Y.one('mydiv').simulate('gesturemovestart');

but i have this message :
Quote:
Event 'gesturemovestart' can't be simulated


So, is it definitively possible to simulate touchevent on YUI, and if yes, why do I have this error ?

Ryuichi Okumura

YUI Contributor

  • Username: okuryu
  • Joined: Mon Dec 07, 2009 6:19 am
  • Posts: 11
  • Location: Tokyo, Japan.
  • Twitter: okuryup
  • GitHub: okuryu
  • Gists: okuryu
  • IRC: okuryu
  • Offline
  • Profile

Re: Is it possible to simulate touchevent on YUI 3.6.0 ?

Post Posted: Wed Aug 22, 2012 6:55 am
+0-
GestureSimulation module will release on next YUI version as 3.6.1 that I know of.
https://github.com/yui/yui3/blob/master ... HISTORY.md
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum