Skip to content

Commit

Permalink
fix: mobile resizing issues (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Feb 23, 2024
1 parent 33df9d2 commit e30a0c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-points-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paneforge": patch
---

Fixed resizing on mobile devices
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/3-bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ body:
attributes:
value: |
#### If you aren't sure if something is a bug or not, please do not create an issue, instead ask in one of the following channels:
- [Discussions](https://github.com/huntabyte/formsnap/discussions/new?category=help)
- [Discord](https://hbyt.us/discord)
- [Discussions](https://github.com/huntabyte/paneforge/discussions/new?category=help)
- [Discord](https://discord.gg/FKR4YhFbvB)
- type: textarea
id: bug-description
attributes:
Expand Down Expand Up @@ -38,7 +38,7 @@ body:
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages svelte,formsnap,@sveltejs/kit,sveltekit-superforms,zod --binaries --browsers`
description: Output of `npx envinfo --system --npmPackages svelte,paneforge,@sveltejs/kit --binaries --browsers`
render: bash
placeholder: System, Binaries, Browsers
validations:
Expand All @@ -51,6 +51,6 @@ body:
options:
- annoyance
- blocking an upgrade
- blocking all usage of Formsnap
- blocking all usage of PaneForge
validations:
required: true
2 changes: 1 addition & 1 deletion packages/paneforge/src/lib/components/pane-resizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function resizeHandleAction(node: HTMLElement, params: ResizerActionParam
unsub = chain(
addEventListener(document.body, "contextmenu", stopDraggingAndBlur),
addEventListener(document.body, "mousemove", onMove),
addEventListener(document.body, "touchmove", onMove),
addEventListener(document.body, "touchmove", onMove, { passive: false }),
addEventListener(document.body, "mouseleave", onMouseLeave),
addEventListener(window, "mouseup", stopDraggingAndBlur),
addEventListener(window, "touchend", stopDraggingAndBlur)
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "concurrently \"pnpm:dev:content\" \"pnpm:dev:svelte\"",
"dev:content": "contentlayer dev",
"dev:svelte": "vite dev",
"dev:svelte": "vite dev --host",
"build": "contentlayer build && vite build",
"build:all": "pnpm -w build",
"build:content": "contentlayer build",
Expand Down

0 comments on commit e30a0c1

Please sign in to comment.