Duplicate click events and disables table scrolling on Touchkit

Hi!
I have some problem with two events:

  1. Fixed an issue where buttons might fired duplicate click events in some situations.

NativeButton Click → init new NavigationView → navigateTo this view → scroll down (sometimes any action on layout) → duplicate click events on NativeButton.

https://vaadin.com/forum/-/message_boards/view_message/1877383
http://dev.vaadin.com/ticket/9864

  1. New inited view disables table scrolling. Maybe it associated with two NavigationManager wich i use simultaneously…
    http://dev.vaadin.com/ticket/9754

These problems have repeated in this configuration Touchkit 2.1.3 (2.1.2) + Vaadin 6.8.4 with iOS 6.0 on iPad.
With Touchkit 2.1.1 first problem cannot be reproduced.

Thanks.

Hi,

Both issues should be resolved in latest 2.1.3 release, I had just forgot to make the latter closed. Make sure that you recompile the widget set and your browser hasn’t cached the old widget set. Updating it may take a while (although app works with older widgetset in the mean time). Open the application, wait a while, reopen the application to make sure new widgetset is used.

If issues still exist, I’d appreciate a reduced application where I can reproduce the issue.

cheers,
matti

I recompiled the widget set and clean browser cache of old widget set.

This hack works only for iPhone not for iPad:

 needsTranslation3dHack = BrowserInfo.get().isIOS() 
                 && BrowserInfo.getBrowserString().contains("iPhone OS 6"); 

Duplicate click events in this situations:
NativeButton Click → init new NavigationView → navigateTo this view → scroll down (sometimes any action on layout) → duplicate click events on NativeButton.
this hack dont work too

 (new Date().getTime() - fastClickAt.getTime()) < IGNORE_SIMULATED_CLICKS_THRESHOLD) 

because differential maybe more than IGNORE_SIMULATED_CLICKS_THRESHOLD
and scroll down (sometimes any action on layout) can be after 1 min or later

This could be the reason?

Thanks

After adding this condition, my problems resolved!


needsTranslation3dHack = BrowserInfo.get().isIOS()
                    && (BrowserInfo.getBrowserString().contains("iPhone OS 6")
                    || BrowserInfo.getBrowserString().contains("iPad; CPU OS 6_"));

I need more tests, but touch events and scrolling down works fine for iPad and iPhone iOS 6

Thanks!

Hi,

I committed a
related change
just a moment ago. Could you verify this works for you?

For the “double click” issue, could you post me a small test application in which I could reproduce the issue?

cheers,
matti

Hi,

I verified this changes and it works for me:)
The “double click” does not reproduced with this fix.

Tested on iPad and iPhone iOS v 6.0.X and vaadin 6.8.5

Thanks!