Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions qml/FullscreenFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ Control {
}
}
// TODO: this might not be the correct way to handle wheel
onWheel: {
onWheel: function(wheel) {
if (flipPageDelay.running) return
let xDelta = wheel.angleDelta.x / 8
let yDelta = wheel.angleDelta.y / 8
let toPage = 0; // -1 prev, +1 next, 0 don't change
if (yDelta !== 0) {
toPage = (yDelta > 0) ? -1 : 1
} else if (xDelta !== 0) {
// todo: handle natural scrolling
toPage = (xDelta > 0) ? 1 : -1
}
if (toPage < 0) {
Expand Down Expand Up @@ -204,6 +205,7 @@ Control {
visible: searchEdit.text === ""

currentIndex: indicator.currentIndex
interactive: false

// To ensure toplevelRepeater's model (page count) updated correctly
// Caution! Don't put it directly under a Repeater{}, that will prevent Connections from working
Expand Down Expand Up @@ -526,7 +528,7 @@ Control {
}

Keys.onPressed: {
if (searchEdit.focus === false && !searchEdit.text && (event.text && !"\t ".includes(event.text))) {
if (searchEdit.focus === false && !searchEdit.text && event.text) {
searchEdit.focus = true
searchEdit.text = event.text
}
Expand Down