Gotlifebar / gwtquery-plugins

Automatically exported from code.google.com/p/gwtquery-plugins
0 stars 0 forks source link

Enhancement - Touch Events #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be excellent if gwtquery-plugins implemented the gwt touch methods in 
addition to the current mouse methods.
com.google.gwt.event.dom.client.TouchCancelEvent;
com.google.gwt.event.dom.client.TouchCancelHandler;
com.google.gwt.event.dom.client.TouchEndEvent;
com.google.gwt.event.dom.client.TouchEndHandler;
com.google.gwt.event.dom.client.TouchEvent;
com.google.gwt.event.dom.client.TouchMoveEvent;
com.google.gwt.event.dom.client.TouchMoveHandler;
com.google.gwt.event.dom.client.TouchStartEvent;
com.google.gwt.event.dom.client.TouchStartHandler;

Original issue reported on code.google.com by joshjr...@gmail.com on 21 Oct 2011 at 6:37

GoogleCodeExporter commented 8 years ago
Do you mean you would like a plugin allowing touch event binding ?
like :
$("#myId").touch(new Function(){...}); 

Original comment by julien.d...@gmail.com on 24 Oct 2011 at 9:37

GoogleCodeExporter commented 8 years ago
I'm sorry, I should of been more specific...I forgot that gwtquery-plugins does 
more than just the drag and drop that I use it for :)
Specifically, I'd like to see support for TouchStart, TouchMove, TouchEnd and 
TouchCancel for dnd.  The gwt-dnd library by Allen Sauer supports it, but I 
would prefer to keep using gwtquery-plugins.

Thanks again!
   Josh

Original comment by joshjr...@gmail.com on 24 Oct 2011 at 2:51

GoogleCodeExporter commented 8 years ago

Original comment by julien.d...@gmail.com on 22 Dec 2011 at 9:41

GoogleCodeExporter commented 8 years ago
I've just committed the support for touch events. The modification is done 
directly in gwtquery. So when the modification will be available in the last 
snapshot of gwtquery, you only have to use it and the draggable plugins will 
support touch event automatically.

I recompiled the demos for the draggable and droppable plugins. Please test it 
with your mobile device (phone and tablets) and report any bugs you found 
within  this issue.

Demos :
http://gwtquery-plugins.googlecode.com/svn/branches/droppable_1_0/demo/GwtSimple
Sample/GwtSimpleSample.html
http://gwtquery-plugins.googlecode.com/svn/branches/draggable_1_0/demo/Draggable
Sample1/DraggableSample1.html

Thanks 

Original comment by julien.d...@gmail.com on 22 Apr 2012 at 4:17

GoogleCodeExporter commented 8 years ago
I meet some problem on IOS devices. The touch event are wll supported but the 
draggable doesn't move. I'm investigating. 
For android devices, all seems to work fine

Original comment by julien.d...@gmail.com on 24 Apr 2012 at 3:51

GoogleCodeExporter commented 8 years ago
Ok it works now on iOS. I update the demos :
http://gwtquery-plugins.googlecode.com/svn/branches/droppable_1_0/demo/GwtSimple
Sample/GwtSimpleSample.html
http://gwtquery-plugins.googlecode.com/svn/branches/draggable_1_0/demo/Draggable
Sample1/DraggableSample1.html

Original comment by julien.d...@gmail.com on 9 May 2012 at 4:25