mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:29:00 +08:00
Change OnYChanged out for OnPositionChanged inside scrollbar. Makes a bit more sense logically and this can be reused in ScrollViews as well.
Added OnPositionChanged to General Page CURA-8979
This commit is contained in:
parent
b04fabb27a
commit
84d7443c18
@ -148,6 +148,14 @@ UM.PreferencesPage
|
||||
bottom: parent.bottom
|
||||
right: parent.right
|
||||
}
|
||||
|
||||
onPositionChanged: {
|
||||
// This removes focus from items when scrolling.
|
||||
// This fixes comboboxes staying open and scrolling container
|
||||
if (!activeFocus) {
|
||||
forceActiveFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Column
|
||||
|
@ -191,13 +191,15 @@ Item
|
||||
}
|
||||
clip: true
|
||||
cacheBuffer: 1000000 // Set a large cache to effectively just cache every list item.
|
||||
ScrollBar.vertical: UM.ScrollBar { id: scrollBar }
|
||||
|
||||
onContentYChanged: {
|
||||
// This removes focus from SettingItems when scrolling.
|
||||
// This fixes comboboxes staying open and scrolling out of the settingView.
|
||||
if (!scrollBar.activeFocus) {
|
||||
scrollBar.forceActiveFocus();
|
||||
ScrollBar.vertical: UM.ScrollBar
|
||||
{
|
||||
id: scrollBar
|
||||
onPositionChanged: {
|
||||
// This removes focus from items when scrolling.
|
||||
// This fixes comboboxes staying open and scrolling container
|
||||
if (!activeFocus) {
|
||||
forceActiveFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user