Thanks, Alex. I was just looking into my notes on this issue and about to say the same thing. My notes were that there is a step in GeoGebra with a call setPerspective('G') that was pulling the focus.
See line 6502 of examples/sample-article/sample-article.xml
(That number reminds me of my first attempt to learn assembly code)
If that is set as a parameter instead of a function call, the behavior stops. In particular, if I go into the corresponding generated iframe file and comment out that line and instead change lines 81 and 82 from
to
width:300,
height:300,
perspective:'G',
then the jumping behavior stops. The GeoGebra flag "preventFocus" does not seem to have any effect here, and I could never find documentation on why these create different behaviors.
- Brian