Explorar el Código

鼠标滚轮X轴不滚动

zhangxc hace 5 años
padre
commit
b000ac2c98
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/js/scrollBar.js

+ 1 - 1
src/js/scrollBar.js

@@ -260,7 +260,7 @@ const $ = require("jquery");
             if(self.$scrollDir =="Y"){
               self.scrollTo(self.$cont[0].scrollTop + wheelRange*self.options.wheelStep)
             }else{
-              self.scrollTo(self.$cont[0].scrollLeft + wheelRange*self.options.wheelStep)
+              // self.scrollTo(self.$cont[0].scrollLeft + wheelRange*self.options.wheelStep)
             }
            
             // if(self.$cont[0].scrollTop !==0 ){