canvas-input: don't blur when emulated touch/mousedown is triggered
This commit is contained in:
parent
9d6c70009c
commit
650f5d7ed5
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@
|
|||
$(document).off('.fakeInput')
|
||||
})
|
||||
$(document).on('touchstart.fakeInput mousedown.fakeInput',function(e){
|
||||
if (e.originalEvent.target!=i[0]) {
|
||||
if (e.originalEvent.target!=i[0] && !(e.originalEvent.sourceCapabilities && e.originalEvent.sourceCapabilities.firesTouchEvents)) {
|
||||
i.blur()
|
||||
}
|
||||
}).on('keydown.fakeInput', function(e){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue