Implement touch events for jquery chosen. Fix filter-categories does not work in iOS

This commit is contained in:
Hadi Nategh 2016-07-15 14:16:44 +02:00
parent 29ccda8dff
commit 4c59ea9d5f

View File

@ -564,6 +564,14 @@
this.container.mouseleave(function(evt) {
_this.mouse_leave(evt);
});
this.container.bind('touchstart', function(evt) {
_this.container_mousedown(evt);
return evt.preventDefault();
});
this.container.bind('touchend', function(evt) {
_this.mouse_leave(evt);
return evt.preventDefault();
});
this.search_results.mouseup(function(evt) {
_this.search_results_mouseup(evt);
});
@ -572,6 +580,12 @@
});
this.search_results.mouseout(function(evt) {
_this.search_results_mouseout(evt);
});
this.search_results.bind('touchstart', function(evt) {
_this.search_results_mouseover(evt);
});
this.search_results.bind('touchend', function(evt) {
_this.search_results_mouseup(evt);
});
this.search_results.bind('mousewheel DOMMouseScroll', function(evt) {
_this.search_results_mousewheel(evt);