امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Nestable.js dragStart() mixes document-relative pageX/pageY with viewport-relative getBoundingClientRect().
On touch devices scrolling offsets the dragged item away from the finger
Suggested fix - use coordinates from the same coordinate system:
Diff:
Read more
On touch devices scrolling offsets the dragged item away from the finger
Suggested fix - use coordinates from the same coordinate system:
Diff:
کد:
diff --git a/js/xf/nestable.js b/js/xf/nestable.js
--- a/js/xf/nestable.js
+++ b/js/xf/nestable.js
@@ -428,8 +428,9 @@
this.placeEl.style.height = `${ dragItem.offsetHeight }px`
- const offsetX = e.offsetX !== undefined ...
Read more
