JQM: Fix buttonmarkup bug keeping ui-btn-down class
authorYoumin Ha <youmin.ha@samsung.com>
Wed, 16 Jan 2013 14:09:16 +0000 (23:09 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Thu, 17 Jan 2013 08:48:33 +0000 (17:48 +0900)
commitcb3fd7d37bf7bdbd22a886a9abe6147bb6bab6eb
tree5742862f285f8871002010b8ea9760d61f424cf9
parent740222a88386ec0786986f49d5f258d2fbdbcabd
JQM: Fix buttonmarkup bug keeping ui-btn-down class

In multi-touch devices, browsers receive multiple touch events at same
time, but there are some abnormal cases that JQM does not handle.

* 'touchcancel'
When a button is long-pressed, some browsers fire 'touchcancel'
event and show some browser menu popup. In this case, the button
still has 'ui-btn-down-*' class, which make button seem to be
pressed.
NOTE: Tizen browser does not fire 'touchcancel'!

* 'touchend' but no 'vmouseup'
When a button and the other element are touched together almost
same time(from button to other element, with slight time gap),
the 'touchend' event is fired to the button, but 'vmouseup' does
not fired sometimes. But JQM does handle only 'vmouseup', so the
'ui-btn-down-*' class is still remained.
(It may be caused by JQM vmouse* event bug.)

This JQM patch adds two events, 'touchcancel' and 'touchend' to
replace 'ui-btn-down-*' class to 'ui-btn-up-*'. Tested on Tizen target
and emulator.

Fix N_SE-19155.

Change-Id: I409a01c468edbd2a813c8199480a421e8794d941
libs/patch/0026-JQM-Fix-buttonmarkup-bug-keeping-ui-btn-down-class.patch [new file with mode: 0644]