jotoh98 / treasureHunt

Treasure hunt engine for PG Computational Geometry
6 stars 1 forks source link

Scaling offset jump #376

Closed jotoh98 closed 4 years ago

jotoh98 commented 4 years ago

As mentioned in #358, there is a scroll jumping error. When reaching the upper or lower limit of the scroll spectrum, the scale stays the same, but the offset gets scaled further.

To prevent this, this simple line 127 in PointTransformation needs to be changed from gamma = scaleProperty.get() / newScale; to gamma = newScale / scaleProperty.get();.