angular-toggle-switch icon indicating copy to clipboard operation
angular-toggle-switch copied to clipboard

toggle jumps back on android 4.3 and 4.2.2

Open Goltergaul opened this issue 11 years ago • 3 comments

I have the toggle switch working as expected im my browser and on android 4.4. However on a android 4.2.2 or 4.3 device the switch jumps back to its previous position right after it is switched. The only way to correctly switch the button is by holding it down a short time and then releasing it again.

Any idea what could cause this behaviour?

Goltergaul avatar Jul 24 '14 14:07 Goltergaul

I might have to integrate with ngTouch. Sounds like <= 4.3 Android might be doing a double click.

cgarvis avatar Jul 24 '14 15:07 cgarvis

maybe but i would not see why a single tap should result in a doubleclick?

Goltergaul avatar Jul 25 '14 10:07 Goltergaul

See http://www.ng-newsletter.com/posts/angular-on-mobile.html. Seems that in mobile there is a "fast" click and then a delayed "click" which results in a double click. Unforunately I moved angular-toggle-switch away from ng-click so I can't use ngTouch.

cgarvis avatar Jul 25 '14 17:07 cgarvis