Here is the scenario:
function onMouseMove(e)
{
e.preventDefault();
if (pinching) {
resizeDrawings();
}
}
function resizeDrawings();
{
//stuff happens
const context = currentCanvas.current.getContext('2d');
//canvas operations
}
Basically, i want the canvas to overflow and become scrollable if its own contents become too big to fit on it's own dimensions.