@@ -373,15 +373,21 @@ function addBottomSwipeListener() {
373373 let swiped = false ;
374374
375375 let direction = 0 ;
376-
377- bottomWrapper . addEventListener ( 'touchstart' , dragStart , false ) ;
378- bottomWrapper . addEventListener ( 'touchend' , dragEnd , false ) ;
379- bottomWrapper . addEventListener ( 'touchmove' , drag , false ) ;
380-
381- bottomWrapper . addEventListener ( 'mousedown' , dragStart , false ) ;
382- bottomWrapper . addEventListener ( 'mouseup' , dragEnd , false ) ;
383- bottomWrapper . addEventListener ( 'mousemove' , drag , false ) ;
384-
376+
377+ if ( isMobile ) {
378+
379+ bottomWrapper . addEventListener ( 'touchstart' , dragStart , false ) ;
380+ bottomWrapper . addEventListener ( 'touchend' , dragEnd , false ) ;
381+ bottomWrapper . addEventListener ( 'touchmove' , drag , false ) ;
382+
383+ } else {
384+
385+ bottomWrapper . addEventListener ( 'mousedown' , dragStart , false ) ;
386+ bottomWrapper . addEventListener ( 'mouseup' , dragEnd , false ) ;
387+ bottomWrapper . addEventListener ( 'mousemove' , drag , false ) ;
388+
389+ }
390+
385391 function dragStart ( e ) {
386392
387393 if ( e . type === 'touchstart' ) {
0 commit comments