uikit 3.20.11-dev.3a41e0fa6 → 3.20.11-dev.c22bb13f2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +0 -6
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +8 -5
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +2 -2
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +9 -6
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/components/sortable.js +9 -7
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.20.11-dev.3a41e0fa6",
5
+ "version": "3.20.11-dev.c22bb13f2",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -217,14 +217,14 @@ export default {
217
217
  move: throttle(function (e) {
218
218
  assign(this.pos, getEventPos(e));
219
219
 
220
- if (
221
- !this.drag &&
222
- (Math.abs(this.pos.x - this.origin.x) > this.threshold ||
223
- Math.abs(this.pos.y - this.origin.y) > this.threshold)
220
+ if (this.drag) {
221
+ this.$emit('move');
222
+ } else if (
223
+ Math.abs(this.pos.x - this.origin.x) > this.threshold ||
224
+ Math.abs(this.pos.y - this.origin.y) > this.threshold
224
225
  ) {
225
226
  this.start(e);
226
227
  }
227
- this.$emit('move');
228
228
  }),
229
229
 
230
230
  end() {
@@ -437,8 +437,10 @@ function throttle(fn) {
437
437
  return function (...args) {
438
438
  if (!throttled) {
439
439
  throttled = true;
440
- fn.call(this, ...args);
441
- requestAnimationFrame(() => (throttled = false));
440
+ requestAnimationFrame(() => {
441
+ throttled = false;
442
+ fn.call(this, ...args);
443
+ });
442
444
  }
443
445
  };
444
446
  }