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.

How to detect click and move of point?

See original GitHub issue

I want to run a function only after a click or move of a point A has been done by the user.

I could not find this information in the docs.

Maybe mover() is one way to do it? However, if(mover() == "A", /* do stuff */) does not work.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

montagacommented, Jan 15, 2019

The console for csconsole: null is the web developer console.

Anyway, with the next release of CindyJS (or, Not moving anything at the moment will not be shown anymore:

strobelmcommented, Jan 15, 2019

mover is the operator you are looking for. It yields a handle to the GeoObject and its name is just a property. Comparing mover().name should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to distinguish mouse "click" and "drag" - Stack Overflow
I updated the answer with an explanation. Basically if your finger less than 6 pixels, it will still count as a click. If...
Read more >
How to get the coordinates of a mouse click on a canvas ...
To detect the click, the canvas element is first selected using the querySelector() method. The addEventListener() method is used on this ...
Read more >
Do you Click-Move-Click, or Click-Drag-Release?
Click Style​​ Auto detect: Use the Auto detect button to use either Click-drag-release and Click-move-click as necessary.
Read more >
Drag'n'Drop with mouse events - The Modern JavaScript Tutorial
At the drag start – remember the initial shift of the pointer relative to the element: shiftX/shiftY and keep it during the dragging....
Read more >
[Solved] How to detect a dragging event? - CodeProject
Use HitTest class to check if original click is within the picturebox. Use PointToScreen and/or PointToClient to detect where exactly is ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found