@micromag/viewer 0.3.463 → 0.3.464

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.
package/es/index.js CHANGED
@@ -1560,7 +1560,10 @@ var ViewerMenu = function ViewerMenu(_ref) {
1560
1560
  var _useDragProgress = useDragProgress({
1561
1561
  progress: shareOpened ? 1 : 0,
1562
1562
  computeProgress: shareOpened ? computeShareProgressClose : computeShareProgress,
1563
- springParams: springParams
1563
+ springParams: springParams,
1564
+ drapOptions: {
1565
+ axis: 'y'
1566
+ }
1564
1567
  }),
1565
1568
  bindShareDrag = _useDragProgress.bind,
1566
1569
  draggingShare = _useDragProgress.dragging,
@@ -1600,7 +1603,10 @@ var ViewerMenu = function ViewerMenu(_ref) {
1600
1603
  var _useDragProgress2 = useDragProgress({
1601
1604
  progress: menuOpened ? 1 : 0,
1602
1605
  computeProgress: menuOpened ? computeMenuProgressClose : computeMenuProgress,
1603
- springParams: springParams
1606
+ springParams: springParams,
1607
+ drapOptions: {
1608
+ axis: 'y'
1609
+ }
1604
1610
  }),
1605
1611
  bindMenuDrag = _useDragProgress2.bind,
1606
1612
  draggingMenu = _useDragProgress2.dragging,
@@ -2847,7 +2853,11 @@ var Viewer = function Viewer(_ref) {
2847
2853
  computeProgress: computeScreenProgress,
2848
2854
  onProgress: onScreenProgress,
2849
2855
  onTap: onTap,
2850
- springParams: springParams
2856
+ springParams: springParams,
2857
+ drapOptions: {
2858
+ filterTaps: true,
2859
+ axis: 'y'
2860
+ }
2851
2861
  }),
2852
2862
  isDragging = _useDragProgress.dragging,
2853
2863
  progressSpring = _useDragProgress.progress,
package/lib/index.js CHANGED
@@ -1564,7 +1564,10 @@ var ViewerMenu = function ViewerMenu(_ref) {
1564
1564
  var _useDragProgress = hooks.useDragProgress({
1565
1565
  progress: shareOpened ? 1 : 0,
1566
1566
  computeProgress: shareOpened ? computeShareProgressClose : computeShareProgress,
1567
- springParams: springParams
1567
+ springParams: springParams,
1568
+ drapOptions: {
1569
+ axis: 'y'
1570
+ }
1568
1571
  }),
1569
1572
  bindShareDrag = _useDragProgress.bind,
1570
1573
  draggingShare = _useDragProgress.dragging,
@@ -1604,7 +1607,10 @@ var ViewerMenu = function ViewerMenu(_ref) {
1604
1607
  var _useDragProgress2 = hooks.useDragProgress({
1605
1608
  progress: menuOpened ? 1 : 0,
1606
1609
  computeProgress: menuOpened ? computeMenuProgressClose : computeMenuProgress,
1607
- springParams: springParams
1610
+ springParams: springParams,
1611
+ drapOptions: {
1612
+ axis: 'y'
1613
+ }
1608
1614
  }),
1609
1615
  bindMenuDrag = _useDragProgress2.bind,
1610
1616
  draggingMenu = _useDragProgress2.dragging,
@@ -2851,7 +2857,11 @@ var Viewer = function Viewer(_ref) {
2851
2857
  computeProgress: computeScreenProgress,
2852
2858
  onProgress: onScreenProgress,
2853
2859
  onTap: onTap,
2854
- springParams: springParams
2860
+ springParams: springParams,
2861
+ drapOptions: {
2862
+ filterTaps: true,
2863
+ axis: 'y'
2864
+ }
2855
2865
  }),
2856
2866
  isDragging = _useDragProgress.dragging,
2857
2867
  progressSpring = _useDragProgress.progress,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.3.463",
3
+ "version": "0.3.464",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -90,5 +90,5 @@
90
90
  "access": "public",
91
91
  "registry": "https://registry.npmjs.org/"
92
92
  },
93
- "gitHead": "a2eb34209cb2dcbcd6a15d1325a02778543a8bca"
93
+ "gitHead": "f9f5a0f5194e71fe489d08a5971a77e72616eafe"
94
94
  }