Browse Source

加快侧边栏按钮拖动速度

- 移动系数从2改为3
pull/1/head
徐飞洋 2 months ago
parent
commit
ec13c68567
  1. 2
      pages/index/index.js

2
pages/index/index.js

@ -146,7 +146,7 @@ Page({
isDragging: true
});
let newTop = this.data.sidebarBtnTop + diffY * 2;
let newTop = this.data.sidebarBtnTop + diffY * 3;
const systemInfo = wx.getSystemInfoSync();
const screenHeight = systemInfo.screenHeight * 2;

Loading…
Cancel
Save