Skip to content

Commit 552401d

Browse files
committed
Remove ismobile check in resize attachment
1 parent 6948b55 commit 552401d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.changeset/tall-pugs-lose.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'panekit': minor
3+
---
4+
5+
Remove mobile check which makes the window unresizable on firefox

src/lib/resize.svelte.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ function calculatePositionAdjustment(
138138

139139
function resize(options: ResizeOptions = {}): Attachment<HTMLElement> {
140140
return (element) => {
141-
const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
142-
if (isMobile) {
143-
return () => {};
144-
}
145-
146141
const { onResizeStart, onResizeEnd, onPositionChange } = options;
147142
const position = options.position;
148143

0 commit comments

Comments
 (0)