Merge pull request #2071 from Ampflower/pr/compatibility

This commit is contained in:
JannisX11 2023-11-18 16:42:18 +01:00 committed by GitHub
commit f28e6d680a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 8 deletions

View File

@ -1527,7 +1527,7 @@ Interface.definePanels(() => {
<div id="animation_controllers_wrapper"
:class="{connecting_controllers: connecting}"
:style="{zoom: zoom, '--blend-transition': controller && controller.last_state ? controller.last_state.blend_transition + 's' : 0}"
@click="deselect($event)" @mousewheel="onMouseWheel($event)"
@click="deselect($event)" @wheel="onMouseWheel($event)"
>
<div id="animation_controllers_pickwhip_anchor" style="height: 0px; position: relative;">

View File

@ -1173,7 +1173,7 @@ class BarSelect extends Widget {
if (typeof data.onChange === 'function') {
this.onChange = data.onChange
}
$(this.node).on('mousewheel', event => {
$(this.node).on('wheel', event => {
scope.trigger(event.originalEvent);
})
}

View File

@ -540,7 +540,7 @@ function setupInterface() {
}
//Scrolling
$('input[type="range"]').on('mousewheel', function () {
$('input[type="range"]').on('wheel', function () {
var obj = $(event.target)
var factor = event.deltaY > 0 ? -1 : 1
var val = parseFloat(obj.val()) + parseFloat(obj.attr('step')) * factor

View File

@ -216,7 +216,7 @@ class Keybind {
document.removeEventListener('keyup', onActivate)
document.removeEventListener('keydown', onActivateDown)
overlay.off('mousedown', onActivate)
overlay.off('mousewheel', onActivate)
overlay.off('wheel', onActivate)
overlay.off('keydown keypress keyup click click dblclick mouseup mousewheel', preventDefault)
if (event instanceof KeyboardEvent == false && event.target && event.target.tagName === 'BUTTON') return;
@ -247,7 +247,7 @@ class Keybind {
document.addEventListener('keyup', onActivate)
document.addEventListener('keydown', onActivateDown)
overlay.on('mousedown', onActivate)
overlay.on('mousewheel', onActivate)
overlay.on('wheel', onActivate)
overlay.on('keydown keypress keyup click click dblclick mouseup mousewheel', preventDefault)
return this;
@ -880,6 +880,10 @@ $(document).keyup(function(e) {
if (Pressing.alt && ActionControl.open) {
ActionControl.vue.$forceUpdate()
}
// Firefox-specific fix for suppressing the menu bar
if(e.which == 18) {
e.preventDefault();
}
if (e.which === 18 && Toolbox.original && Toolbox.original.alt_tool) {
Toolbox.original.select()
delete Toolbox.original;

View File

@ -343,7 +343,7 @@ Interface.definePanels(() => {
</div>
</div>
<div v-show="open_tab == 'picker' || open_tab == 'both'" @mousewheel="onMouseWheel($event)">
<div v-show="open_tab == 'picker' || open_tab == 'both'" @wheel="onMouseWheel($event)">
<div v-show="picker_type == 'box'" ref="square_picker" :style="{maxWidth: width + 'px'}">
<input id="main_colorpicker">
</div>
@ -444,7 +444,7 @@ Interface.definePanels(() => {
}))
}
$('#color_history').on('mousewheel', function(e) {
$('#color_history').on('wheel', function(e) {
var delta = (e.originalEvent.deltaY < 0 ? -90 : 90);
this.scrollLeft += delta;
})

View File

@ -3705,7 +3705,7 @@ Interface.definePanels(function() {
@contextmenu="contextMenu($event)"
@mousedown="onMouseDown($event)"
@touchstart="onMouseDown($event)"
@mousewheel="onMouseWheel($event)"
@wheel="onMouseWheel($event)"
@mousemove="updateMouseCoords($event)"
@mouseleave="onMouseLeave($event)"
class="checkerboard_target"