Comments (1)
Hey, thanks for your kind words!
Sure, this sounds like a useful feature.
To make it generalizable I'd suggest providing a configurable function
UseDraggableOptions {
// ...
target_offset: Rc<dyn Fn(websys::EventTarget) -> (f64, f64)>
}
that the user can provide to override the default behavior.
What do you think?
from leptos-use.
Related Issues (20)
- use_color_mode resets the value in local storage to auto, when reloading the page HOT 2
- Make `use_color_mode` read headers
- Demo for `use_cookie` in the book is misaligned
- Add `use_web_lock`
- Using `leptos_use` with fermyon spin HOT 2
- Use_clipboard is missing from the docs HOT 3
- reexport `cookie::SameSite` HOT 1
- Problem with dlmalloc v0.2.5 HOT 2
- use_local_storage does not work in my project HOT 10
- Add `use_not`
- Add `use_event_source` HOT 1
- Getting a signal in a throttle_fn that gets called by a resize observer causes console warnings. HOT 1
- Add url param detection to SSR for `use_color_mode`
- Add binary codec support to `use_websocket`
- Add cookie support to `use_color_mode` HOT 1
- memory access out of bounds when processing large files with `use_drop_zone` HOT 1
- weird behavior of `use_cookie` HOT 4
- Add Spin implementation to `use_cookie`
- Infinite scroll disposed error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leptos-use.