@remit/ui 0.0.219 → 0.0.220

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/ui",
3
- "version": "0.0.219",
3
+ "version": "0.0.220",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src"
@@ -113,4 +113,15 @@ describe("MobileReadingPane", () => {
113
113
  assert.match(html, /title="Reply"/);
114
114
  assert.doesNotMatch(html, /title="Reply \(r\)"/);
115
115
  });
116
+
117
+ it("keeps pinch-zoom enabled on the scroll area when swipe handlers are set", () => {
118
+ const html = renderToString(
119
+ createElement(MobileReadingPane, {
120
+ thread,
121
+ onBack: () => undefined,
122
+ touchHandlers: { onTouchStart: () => undefined },
123
+ }),
124
+ );
125
+ assert.match(html, /touch-action:\s*pan-y pinch-zoom/);
126
+ });
116
127
  });
@@ -131,7 +131,7 @@ export function MobileReadingPane({
131
131
 
132
132
  <div
133
133
  className="flex-1 overflow-y-auto"
134
- style={touchHandlers ? { touchAction: "pan-y" } : undefined}
134
+ style={touchHandlers ? { touchAction: "pan-y pinch-zoom" } : undefined}
135
135
  {...touchHandlers}
136
136
  >
137
137
  {/* Newest first, as on the wide pane. */}