1

我有一个带有拖放功能的简单表格。当没有水平滚动时它工作正常,但水平滚动它不能正常工作。

水平滚动的图像

没有水平问题的图像

我想要水平滚动时的相同拖动行为。

JsFiddle 链接:https ://jsfiddle.net/fhnoc28x/4/

scrollPosition = getScrollPosition()[0];
edge.page.x *= X < screen.width / 2 ? -1 : 1;
if (!((edge.page.x < 0 && scrollPosition <= 0) || (edge.page.x > 0 && scrollPosition >= (scrollData.width - screen.width)))) {
  if (edge.flag.x++ === 0) {
    // call window autoscroll
    autoScrollX(window);
  }
}

`

4

0 回答 0