Skip to content

Commit 70ee8a2

Browse files
committed
Add size binding
1 parent ee22e96 commit 70ee8a2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/lib/resize.svelte.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ function calculatePositionAdjustment(
139139

140140
function resize(options: ResizeOptions = {}): Attachment<HTMLElement> {
141141
return (element) => {
142+
<<<<<<< Updated upstream
143+
=======
144+
const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
145+
if (isMobile) {
146+
return () => {};
147+
}
148+
149+
>>>>>>> Stashed changes
142150
const { onResizeStart, onResize, onResizeEnd, onPositionChange } = options;
143151
const position = options.position;
144152

0 commit comments

Comments
 (0)