JavaScript: ¿onmouseup?

cfleitas shared this question 3 years ago
Needs Answer

I have two points: A and P and I want to allow user to move P and when she releases mouse button I want position of A be updated to actual position of P (only then because moving A through different positions involves a lot of calculations each time).

Could I achieve this by defining 'myFunction' involving onmouseup in Global JavaScript properties ?


  1. function ggbOnInit() {
  2. ggbApplet.registerObjectUpdateListener("P","myFunction");
  3. }
  4. function myFunction(object){
  5. ???????onmouseup????
  6. }


I would appreciate any help or hints.

Thanks!

© 2020 International GeoGebra Institute