Browse Source

Merge branch 'scrollBar' into test

zhangxc 5 years ago
parent
commit
fcf4ca4456
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/js/scrollBar.js

+ 2 - 0
src/js/scrollBar.js

@@ -259,6 +259,8 @@ const $ = require("jquery");
             // 调用scrollTo方法。
             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)
             }
            
             // if(self.$cont[0].scrollTop !==0 ){