clowder-framework / CONSORT-frontend

custom react frontend working with consort clowder instance
0 stars 0 forks source link

SetScale needs to be responsive for each page load #80

Closed minump closed 3 months ago

minump commented 4 months ago

ScaleX and ScaleY setScaleY = (canvas_height / pageHeight); setScaleX = (canvas_width / pageWidth); changes for every page. Since this variable is set as a state, sometimes its not repsonsive when the page is changed. This causes slight shift in canvas highlights. This needs to be fixed.

minump commented 3 months ago

SetScale moved to "onRenderSuccess" function. this responds once rendering is done. Closing issue.