cotton123236 / zoomist

Zoomist is a library built with TypeScript that allows you to create zoom elements on website quickly and easily.
https://zoomist.vercel.app/
MIT License
112 stars 23 forks source link

Add drag filter #40

Closed semivori closed 5 months ago

semivori commented 10 months ago

It is better to see once than to hear a hundred times - https://i.imgur.com/RiWtcbA.gif https://codesandbox.io/p/github/semivori/zoomist/dev

PS: I`m not strong in TypeScript.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zoomist ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2024 2:39pm
cotton123236 commented 5 months ago

Hey @semivori ,

Appreciated for your help and suggestion, I implemented it in other way!

Starting from v2.1.0, you can prevent any element from being dragged by adding class .zoomist-not-draggable. And you can use option disableDraggingClass to change this className.

Thanks again!