Geogebra Bug?

8 views
Skip to first unread message

William Haynes

unread,
Nov 12, 2025, 10:38:18 AM (11 days ago) Nov 12
to Numbas Users
I"ve run into a strange bug that's affecting a question that worked last summer.

A minimum example is shown here: https://numbas.mathcentre.ac.uk/question/183702/test-geogebra-truss/

When you click on the members of the truss diagram shown in the variable list, the image toggles the way I want it to.

But if you run the question and click on the diagram shown in the statement it doesn't work the same way.  There, clicking on some of the members does nothing, while clicking on other members toggles a different member.

Any ideas what's happening and how to fix?

The original question is:  https://numbas.mathcentre.ac.uk/question/183702/test-geogebra-truss/

William Haynes

unread,
Nov 15, 2025, 10:19:05 AM (8 days ago) Nov 15
to Numbas Users
It looks like the (x, y) coordinates being passed to applet are from the top-left corner of the window, rather than from the top-left of the applet.  This causes a member to the right and down from the point I click to get the hit.

Also, I noticed that if I set the text size in the display options to less than one, the space allocated for the geogebra applet is reduced, causing a horizontal scroll bar to appear.

Christian Lawson-Perfect

unread,
Nov 18, 2025, 11:18:33 AM (5 days ago) Nov 18
to numbas...@googlegroups.com
I have a feeling this is a bug in GeoGebra. 

Numbas is now rendered inside a custom HTML component, which has its own shadow DOM. GeoGebra might not be distinguishing between the parent document's coordinate system and the shadow DOM's. I'll investigate and see if I can reproduce this outside Numbas.

--
You received this message because you are subscribed to the Google Groups "Numbas Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numbas-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/numbas-users/b7f7d49d-61c1-44d7-9170-55f79f1e92a0n%40googlegroups.com.

William Haynes

unread,
Nov 20, 2025, 5:41:25 PM (3 days ago) Nov 20
to Numbas Users

>> I have a feeling this is a bug in GeoGebra. 

Yes, I think you are right.  

Clicks on points, lines, polygons etc all work correctly, but my objects are using a geogebra onClick script.    For those, geogebra thinks that a click at (x,y) is actually happening at (x+a, y+b), so triggers the wrong object's script.

Will

Christian Lawson-Perfect

unread,
Nov 21, 2025, 10:01:36 AM (2 days ago) Nov 21
to numbas...@googlegroups.com
I spent quite a while yesterday trying to reproduce this outside Numbas, and couldn't even get a GeoGebra applet to display properly inside a custom HTML element. It seems it really doesn't like being in a shadow DOM!
Unfortunately, it looks like GeoGebra has stopped offering any support other than suggesting you post on the /r/geogebra subreddit. I don't user reddit, so I can't file a bug report. I think we're stuck.

William Haynes

unread,
Nov 21, 2025, 10:12:17 AM (2 days ago) Nov 21
to 'guillaume theo' via Numbas Users
Christian,

Yesterday I found this page https://www.geogebra.org/m/pfmrng8g#material/hkcnkhvc, which says

If you're sure and know exactly how to reproduce the bug, please contact us via sup...@geogebra.org and let us know the following information:
  • detailed step-by-step description how we can reproduce the bug
  • screenshots
  • app name
  • version number
I have a reddit account if you would like me to post something there, too.

Thanks for looking into this.  

Will



You received this message because you are subscribed to a topic in the Google Groups "Numbas Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/numbas-users/TwPlFJ9rmWs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to numbas-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/numbas-users/CAEMHSOj073YJf8OLEzHckrqH9gG4aYUWvEzgk4H3Wv%2B0wU3nVg%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages