commit 6ee599 (Fix modal mouse wheel issues) used // for comments instead of using /**/, which caused weird behaviour. replacing // with /**/ fixed the problem.