Skip to content

Commit f540c2d

Browse files
author
@soyjavi
committed
Fix error gestures in form elements
1 parent 7a1e002 commit f540c2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/quo.gestures.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Quo.Gestures = do ($$ = Quo) ->
1515
_handlers = {}
1616
_data = null
1717
_originalEvent = null
18+
_disabled_tags = ["input", "select", "textarea"]
1819

1920
$$(document).ready ->
2021
environment = $$ document.body
@@ -32,6 +33,7 @@ Quo.Gestures = do ($$ = Quo) ->
3233

3334
# Private methods
3435
_start = (ev) ->
36+
return if ev.srcElement.tagName.toLowerCase() in _disabled_tags
3537
_started = true
3638
_originalEvent = ev or event
3739
_data = _getFingersData(ev)

0 commit comments

Comments
 (0)