Glider snapping onto the start point of the graph

20 views
Skip to first unread message

Henry Lähteenmäki

unread,
Jun 2, 2021, 6:06:51 AM6/2/21
to JSXGraph
Hi,

Is there way the prevent the glider snapping onto the start/end point of the graph? 

I would like the glider to move without snapping. Now I need to move the glider quite far away (about 0.5-1 units) from the graph start point and only then it begins to move. 

br,
Henry 

Alfred Wassermann

unread,
Jun 4, 2021, 4:06:55 AM6/4/21
to JSXGraph
Dear Henry,
can you please post a minimal example?
Best wishes,
Alfred


Henry Lähteenmäki

unread,
Jun 4, 2021, 4:32:42 AM6/4/21
to JSXGraph
Dear Alfred,

I think I located a problem but still for me the behavior of the glider is weird. 

So this one works well because the graph is defined on a small interval 0-5. I assume that the snapping still actually happens but it is extremely weak:

var board = JXG.JSXGraph.initBoard('jxgbox', { axis : true });
var f1 = board.create('functiongraph', [function(x) { return -x*x+x; }, 0, 5]);
var g1 = board.create('glider', [0, 0, f1]);
var t1 = board.create('tangent', [g1]);

On the other hand, if you increase the interval, let's say 0-100 then the snapping is stronger and if the interval is 0-1000 the snapping is extremely strong:

var board = JXG.JSXGraph.initBoard('jxgbox', { axis : true });
var f1 = board.create('functiongraph', [function(x) { return -x*x+x; }, 0, 100]);
var g1 = board.create('glider', [0, 0, f1]);
var t1 = board.create('tangent', [g1]);

br,
Henry

Alfred Wassermann

unread,
Jun 4, 2021, 9:36:33 AM6/4/21
to JSXGraph
Dear Henry,
indeed this is bug, I will create a ticket. on github.
Thanks for posting this problem!

Best wishes,
Alfred

Reply all
Reply to author
Forward
0 new messages