mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-14 03:35:31 +02:00
Disable touchstart event for now - causing issue with scrolling choices
This commit is contained in:
parent
67fe3b9c5a
commit
6a6988f71b
4
assets/scripts/dist/choices.min.js
vendored
4
assets/scripts/dist/choices.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1603,7 +1603,7 @@ export class Choices {
|
||||||
_addEventListeners() {
|
_addEventListeners() {
|
||||||
document.addEventListener('keyup', this._onKeyUp);
|
document.addEventListener('keyup', this._onKeyUp);
|
||||||
document.addEventListener('keydown', this._onKeyDown);
|
document.addEventListener('keydown', this._onKeyDown);
|
||||||
document.addEventListener('touchstart', this._onMouseDown);
|
// document.addEventListener('touchstart', this._onMouseDown);
|
||||||
document.addEventListener('mousedown', this._onMouseDown);
|
document.addEventListener('mousedown', this._onMouseDown);
|
||||||
document.addEventListener('mouseover', this._onMouseOver);
|
document.addEventListener('mouseover', this._onMouseOver);
|
||||||
|
|
||||||
|
@ -1625,7 +1625,7 @@ export class Choices {
|
||||||
_removeEventListeners() {
|
_removeEventListeners() {
|
||||||
document.removeEventListener('keyup', this._onKeyUp);
|
document.removeEventListener('keyup', this._onKeyUp);
|
||||||
document.removeEventListener('keydown', this._onKeyDown);
|
document.removeEventListener('keydown', this._onKeyDown);
|
||||||
document.removeEventListener('touchstart', this._onMouseDown);
|
// document.removeEventListener('touchstart', this._onMouseDown);
|
||||||
document.removeEventListener('mousedown', this._onMouseDown);
|
document.removeEventListener('mousedown', this._onMouseDown);
|
||||||
document.removeEventListener('mouseover', this._onMouseOver);
|
document.removeEventListener('mouseover', this._onMouseOver);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue