Skip to content

Commit

Permalink
Fixed: Scrolling on macOS. Solves part of issue #83.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuperino committed Jul 8, 2022
1 parent 05e2a57 commit 89b2d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prompter/Prompter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ Flickable {
//propagateComposedEvents: false
acceptedButtons: Qt.LeftButton
hoverEnabled: false
scrollGestureEnabled: false
scrollGestureEnabled: true
// The following placement allows covering beyond the boundaries of the editor and into the prompter's margins.
anchors.fill: parent
// anchors.left: parent.left
// anchors.right: parent.right
// y: -prompter.height
// height: parent.height+2*prompter.height
cursorShape: (pressed || dragging) ? Qt.ClosedHandCursor : Qt.OpenHandCursor
onWheel: {
onWheel: (wheel)=> {
if (prompter.__noScroll && parseInt(prompter.state)===Prompter.States.Prompting)
return;
else if (parseInt(prompter.state)===Prompter.States.Prompting && (prompter.__scrollAsDial && !(wheel.modifiers & Qt.ControlModifier || wheel.modifiers & Qt.MetaModifier) || !prompter.__scrollAsDial && (wheel.modifiers & Qt.ControlModifier || wheel.modifiers & Qt.MetaModifier))) {
Expand Down

0 comments on commit 89b2d72

Please sign in to comment.