You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logging the editor.zoom values shows that zoom values may at times go outside of the given range of [editor.zoom_min, editor.zoom_max]. I propose when calculating editor.zoom to check if the value is inside the range and if not hardcode it to the provided min and max. Further, it might be worth to explore rounding results to avoid javascripts floating error.
The text was updated successfully, but these errors were encountered:
I wanted to include a background grid (using css background properties) in the editor. Due to the editor.zoom values, it was not possible to calculate a precise offset for simulating moving into the center. The same holds for the values in the translation event btw.
I solved the issue though by using independent numbers and an independent div for background!
Logging the editor.zoom values shows that zoom values may at times go outside of the given range of [editor.zoom_min, editor.zoom_max]. I propose when calculating editor.zoom to check if the value is inside the range and if not hardcode it to the provided min and max. Further, it might be worth to explore rounding results to avoid javascripts floating error.
The text was updated successfully, but these errors were encountered: