@pisell/private-materials 6.12.266 → 6.12.267

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.
@@ -104,7 +104,13 @@ function TimeGrid() {
104
104
  const scroller = scrollTableRef.current;
105
105
  if (!scroller) return void 0;
106
106
  function onPointerDown(e) {
107
- if (e.pointerType === "mouse" && e.button !== 0) return;
107
+ if (e.pointerType !== "mouse") {
108
+ dragStateRef.current.isDragging = false;
109
+ dragStateRef.current.pointerId = null;
110
+ dragStateRef.current.moved = false;
111
+ return;
112
+ }
113
+ if (e.button !== 0) return;
108
114
  if (e.target instanceof Element && e.target.closest("[data-cart-button=\"true\"], input, textarea")) return;
109
115
  dragStateRef.current = {
110
116
  isDragging: true,
@@ -116,6 +122,7 @@ function TimeGrid() {
116
122
  };
117
123
  }
118
124
  function onPointerMove(e) {
125
+ if (e.pointerType !== "mouse") return;
119
126
  const state = dragStateRef.current;
120
127
  if (!state.isDragging || state.pointerId !== e.pointerId) return;
121
128
  const dx = e.clientX - state.startX;
@@ -230,8 +237,11 @@ function TimeGrid() {
230
237
  }))), /* @__PURE__ */ React.createElement("div", {
231
238
  ref: scrollTableRef,
232
239
  onScroll: syncHeader,
233
- className: "max-w-full overflow-x-auto rounded-b-[28px] cursor-grab select-none touch-pan-y active:cursor-grabbing",
234
- style: _objectSpread2({ WebkitOverflowScrolling: "touch" }, scrollerOverscrollStyle)
240
+ className: "max-w-full overflow-x-auto rounded-b-[28px] cursor-grab select-none active:cursor-grabbing",
241
+ style: _objectSpread2({
242
+ touchAction: "auto",
243
+ WebkitOverflowScrolling: "touch"
244
+ }, scrollerOverscrollStyle)
235
245
  }, /* @__PURE__ */ React.createElement("div", {
236
246
  className: "w-full",
237
247
  key: grid.date
@@ -106,7 +106,13 @@ function TimeGrid() {
106
106
  const scroller = scrollTableRef.current;
107
107
  if (!scroller) return void 0;
108
108
  function onPointerDown(e) {
109
- if (e.pointerType === "mouse" && e.button !== 0) return;
109
+ if (e.pointerType !== "mouse") {
110
+ dragStateRef.current.isDragging = false;
111
+ dragStateRef.current.pointerId = null;
112
+ dragStateRef.current.moved = false;
113
+ return;
114
+ }
115
+ if (e.button !== 0) return;
110
116
  if (e.target instanceof Element && e.target.closest("[data-cart-button=\"true\"], input, textarea")) return;
111
117
  dragStateRef.current = {
112
118
  isDragging: true,
@@ -118,6 +124,7 @@ function TimeGrid() {
118
124
  };
119
125
  }
120
126
  function onPointerMove(e) {
127
+ if (e.pointerType !== "mouse") return;
121
128
  const state = dragStateRef.current;
122
129
  if (!state.isDragging || state.pointerId !== e.pointerId) return;
123
130
  const dx = e.clientX - state.startX;
@@ -232,8 +239,11 @@ function TimeGrid() {
232
239
  }))), /* @__PURE__ */ react.default.createElement("div", {
233
240
  ref: scrollTableRef,
234
241
  onScroll: syncHeader,
235
- className: "max-w-full overflow-x-auto rounded-b-[28px] cursor-grab select-none touch-pan-y active:cursor-grabbing",
236
- style: require_objectSpread2._objectSpread2({ WebkitOverflowScrolling: "touch" }, scrollerOverscrollStyle)
242
+ className: "max-w-full overflow-x-auto rounded-b-[28px] cursor-grab select-none active:cursor-grabbing",
243
+ style: require_objectSpread2._objectSpread2({
244
+ touchAction: "auto",
245
+ WebkitOverflowScrolling: "touch"
246
+ }, scrollerOverscrollStyle)
237
247
  }, /* @__PURE__ */ react.default.createElement("div", {
238
248
  className: "w-full",
239
249
  key: grid.date
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.266",
3
+ "version": "6.12.267",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",