@xh/hoist 73.0.0-SNAPSHOT.1738687983846 → 73.0.0-SNAPSHOT.1739312014088

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.
@@ -149,6 +149,7 @@ export class NavigatorModel extends HoistModel {
149
149
  // to propagate to scrollable elements within the page.
150
150
  swiper.on('touchStart', (s, event: PointerEvent) => {
151
151
  swiper.allowTouchMove = false;
152
+ swiper.params.shortSwipes = true;
152
153
  this._touchStartX = event.pageX;
153
154
  });
154
155
 
@@ -175,6 +176,12 @@ export class NavigatorModel extends HoistModel {
175
176
  swiper.allowTouchMove =
176
177
  swiper.progress < 1 || !isDraggableEl(scrollableParent, 'right');
177
178
 
179
+ // Disable short swipes to prevent accidental navigation when reaching the
180
+ // end of the scrollable parent.
181
+ if (!swiper.allowTouchMove) {
182
+ swiper.params.shortSwipes = false;
183
+ }
184
+
178
185
  // During the swiper transition, undo the scrollable parent's internal scroll
179
186
  // to keep it static.
180
187
  if (swiper.progress < 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1738687983846",
3
+ "version": "73.0.0-SNAPSHOT.1739312014088",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",