Skip to content

Preventing table scroll whilst dragging #52

@ensignos

Description

@ensignos

Hi, thank you for a great utility that is proving to be very useful but which I am experiencing some problems with when used on a long Bootstrap table on a touch device.

The problem is that the table scrolls as I try to drag the item.

I have tried to suppress this using the following but it appears to make no difference. Do you have any other suggestions?

  dragger.on('shadowMove', function (from, to) {
    document.getElementById("sortCategoryItemsTable").style.overFlow = "hidden";
    document.getElementById("sortCategoryItemsTable").style.touchAction = "none";
  });

  dragger.on('out', function (from, to) {
    document.getElementById("sortCategoryItemsTable").style.overFlow = "auto";
    document.getElementById("sortCategoryItemsTable").style.touchAction = "auto";
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions