Dropdown list and zoom and pan

Thulani shared this question 2 years ago
Answered

The dropdown does not move with pan, is this by design? How can I overcome this?

Comments (3)

photo
1

it is by desing

you can move/select other position with SetCoords( <Object>, <x>, <y> ) in a script

<x> <y> must be coords in pixels

photo
1

I tried using SetCoords using a point's coordinates it didn't work, it works fine with the slider. The problem is pan doesn't change position of objects. I was also wondering how I can subscribe to pan event.

photo
photo
3

in attached P is the coords of corners in pixels, C is the coords of corner in cartesian units so C invert(P) change the coords of A to pixels from up-left corner and a script on update A' give the position to L_1

Files: foro.ggb
© 2020 International GeoGebra Institute