yii2-multiple-input icon indicating copy to clipboard operation
yii2-multiple-input copied to clipboard

sortable doesn't work on mobile devices

Open art-voloshyn opened this issue 6 years ago • 3 comments

jquery-sortable lib from http://johnny.github.com/jquery-sortable/ what use in this project doesn't maintain for a long time and doesn't compatible with mobile devices. How to use sortable with touch-devices?

art-voloshyn avatar Jun 20 '19 07:06 art-voloshyn

I also noticed that the sortable doesn't really work well. I have to drag really far above the container to make it move.

Slayvin avatar Sep 21 '20 11:09 Slayvin

I also noticed that the sortable doesn't really work well. I have to drag really far above the container to make it move.

I have the same issue i found out that the 4th parameter (useOffset) is "undefined" when setDimensions is called. if this is changed to true it works again. Don't know if this is related to jQuery changes or something else.

   getItemDimensions: function  () {
  if(!this.itemDimensions){
    this.items = this.$getChildren(this.el, "item").filter(
      ":not(." + this.group.options.placeholderClass + ", ." + this.group.options.draggedClass + ")"
    ).get()
    // setDimensions(this.items, this.itemDimensions = [], this.options.tolerance)
    setDimensions(this.items, this.itemDimensions = [], this.options.tolerance, true) // fixed issue with placeholder position
  }
  return this.itemDimensions
},

Bhoft avatar Oct 07 '20 13:10 Bhoft

Probably sorting is needed to be rewritten using native drag and drop API

unclead avatar Jun 26 '21 17:06 unclead

the widget was migrated to sotable.js in 977ca80c115fbfc1293dbe0eb811c754f6637964 (release 2.28.0) and most likely all issues caused by the usage of outdated jquery.sortable should have been already sorted out

unclead avatar Mar 30 '24 18:03 unclead