Closed GKatsarov closed 4 years ago
I cannot provide a drop event.
Instead, hitTest method can be used to test drop the container.
moveable.hitTest(dropContainer: element | { left, top, width, height }): number;
I cannot seem to find any function hitTest
in the moveable library. I've even checked the
https://daybrush.com/moveable/release/latest/dist/moveable.min.js
for references and still nothing. Can you provide an example or anything, that I can use, for the current version of the library? Thanks a lot in advance!
@GKatsarov oh. sorry. i'll add this method.
@GKatsarov
moveable's new version is released.
moveable
0.17.1react-moveable
0.20.1preact-moveable
0.19.1ngx-moveable
0.13.1svelte-moveable
0.8.1Check hitTest
method. Thank you :)
Environments
Description
I've been using the library for a month now, I've tested all the events, inputEvent, target, everything, I still cant manage to get the container in which I drop the element. The thing I do is very easy. I have a div inside my main container, 50% top, 50% height, and the element at the top of the container. I try to move the element inside the div, drop it, and I can't get the div in any way. Please help!