Fixed page-breaking bug when scaleScrolling queue while a timetip is open

This commit is contained in:
rainbow napkin 2025-04-09 04:24:55 -04:00
parent d9d39e1563
commit 441108c9cb

View file

@ -327,6 +327,10 @@ class queuePanel extends panelObj{
scaleScroll(event){ scaleScroll(event){
if(event.ctrlKey){ if(event.ctrlKey){
//I could sit here and work out why timetips break everything on scalescroll
//Then again you wouldn't want phantom timetips surviving the re-scale so you might as well get two birds stoned at once :P
this.killTimetips();
//Capture inverse scroll wheel direction //Capture inverse scroll wheel direction
const scrollDirection = event.wheelDeltaY / Math.abs(event.wheelDeltaY) * -1; const scrollDirection = event.wheelDeltaY / Math.abs(event.wheelDeltaY) * -1;