question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

updating elementGuidelines during drag not working

See original GitHub issue

Environments

  • Framework name: Vanilla
  • Moveable Component version: 0.22.3
  • Testable Address(optional): codesandbox

Description

I’m trying to update elementGuidelines during drag so the dragged element will snap to other elements than the elements that was defined in Moveable constructor, but is it not working. I tried also to set elementGuidelines with the refresh option but it did not work.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
daybrushcommented, Feb 14, 2021

@fwh1990 @znlbwo

  • moveable 0.23.1
  • react-moveable 0.26.2
  • preact-moveable 0.25.2
  • ngx-moveable 0.19.1
  • svelte-moveable 0.14.1

moveable’s new version is released. Check it again.

0reactions
daybrushcommented, Feb 8, 2021

@fwh1990

Oh sorry. I was mistaken. Try again

Read more comments on GitHub >

github_iconTop Results From Across the Web

Draggable 'update' not working? - GSAP - GreenSock
Hello,. we have an issue with draggable - we need to manually change the draggable item's position, but even after calling the 'update' ......
Read more >
Cursor of HTML element gets set after, but not during dragging
I have found an answer which works on Google Chrome. var divs = Array.prototype.slice.call(document.getElementsByTagName("div")); divs.
Read more >
Drag operations - Web APIs - MDN Web Docs - Mozilla
The following describes the steps that occur during a drag and drop operation.
Read more >
Drag'n'Drop with mouse events - The Modern JavaScript Tutorial
The problem is that, while we're dragging, the draggable element is always above other elements. And mouse events only happen on the top ......
Read more >
Using the HTML5 Drag and Drop API - web.dev
Keep in mind that not all elements can be targets, for example an image can't be a target. Starting and ending a drag...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found