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
oooh, that would be a really nice UX for this! It shouldn't be too hard. The function JpegUtils.getDCTBlockFromClick should work with a mouse over event (it should be rewritten to just take in a mouse position I think to make this easier)
Here's how it's currently used to get the current block that's clicked on:
const{ block, x, y }=JpegUtils.getDCTBlockFromClick(event,decodedImage,canvas);
So you'd want to wrap that code snippet up in a function so it can run either on click or on mouse wheel.
It's a similar thing for the slider. Actually, all you'd need to do is update the slider DOM element's value on mouse wheel and it will all "just work". Alternatively you can refactor it so that what the slider oninput event does can be reused on mouse wheel:
When the mouse is over the image, how hard would it be to hook up the scroll wheel, so that
The text was updated successfully, but these errors were encountered: