viktorthang / mgwt

Automatically exported from code.google.com/p/mgwt
Other
0 stars 0 forks source link

Adding a GWT Touch handler will break event handling of MGWT widgets. #246

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Building UI using MGWT
2. Adding a GWT widget to UI. 
3  Adding a TouchStartHandler (the standard GWT one) to it.
What is the expected output? 
All widgets work normally. 
What do you see instead?
Touch events are not working for MGWT widgets. 

What version of the product are you using? On what operating system?
gwt2.5 rc1,mgwt 1.1.1  IPad3, Android 4.1.

Please provide any additional information below.
I think it is because those 4 touch events (DOM events) defined in GWT are 
duplicated in MGWT. Maybe now MGWT can switch to GWT standard Touch-Events.

Original issue reported on code.google.com by shenawes...@gmail.com on 18 Sep 2012 at 11:16

GoogleCodeExporter commented 8 years ago
I changed some classes (TouchEvent,TouchWidgetMobileImpl and 4 TouchEvent 
classes,see attached files) . now the TouchWidgetMobileImpl will convert GWT 
touch events(DOM events) to MGWT touch events(changed to None-DOM events) . 
Probably there is a more elegant way to achieve the goal. But looks like this 
solution works fine so far, I will go with it since I have a production release 
tmr.  

Original comment by shenawes...@gmail.com on 19 Sep 2012 at 2:24

Attachments:

GoogleCodeExporter commented 8 years ago
since we now have real touch events in GWT (which we did not have when mgwt 
started) we could think about cutting back on our touch events with the next 
mgwt release and actual introduce some breaking changes here. 

The other reason we are not using GWT touch events is that we need TouchEvents 
that can be used in unit tests. There might be an easy way of solving this 
though.

Original comment by kurka.da...@gmail.com on 26 Oct 2012 at 8:03

GoogleCodeExporter commented 8 years ago
In order to solve Issue 217 we should rework the event system and make it 
compatible with GWT. mgwt should not be a roadblock here in any sense. Setting 
to 1.2

Original comment by kurka.da...@gmail.com on 27 Oct 2012 at 8:11

GoogleCodeExporter commented 8 years ago

Original comment by kurka.da...@gmail.com on 9 Aug 2014 at 9:34