Skip to content

Commit

Permalink
fix: [review] When the sidebar content is fully displayed, only the v…
Browse files Browse the repository at this point in the history
…ertical scroll wheel is used

   1.When the sidebar content is fully displayed, only the vertical scroll wheel is used;
   2.Adjust Image show style.

Log: When the sidebar content is fully displayed, only the vertical scroll wheel is used
  • Loading branch information
starhcq committed Oct 10, 2024
1 parent 4289a5a commit 7806e5d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
31 changes: 14 additions & 17 deletions src/qml/Control/ListView/ThumbnailListDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -104,30 +104,27 @@ Item {
visible: false
}

OpacityMask{
id: opacityMask
anchors.fill: maskRec
source: image
maskSource: mask
}
DropShadow {
anchors.fill: opacityMask

horizontalOffset: -0.5
verticalOffset: 1.3

radius: 1.0
samples: radius * 2 + 1
spread: 0.01

smooth: true
opacity: 0.1

FastBlur {
anchors.top: opacityMask.top; anchors.topMargin: 6
anchors.left: opacityMask.left; anchors.leftMargin: 1
width: opacityMask.width - 2; height: opacityMask.height - 6
source: opacityMask
radius: 10
transparentBorder: true
}

//遮罩执行
OpacityMask {
id: mask
OpacityMask{
id: opacityMask
anchors.fill: maskRec
source: image
maskSource: maskRec
antialiasing: true
smooth: true
}

//border and shadow
Expand Down
2 changes: 1 addition & 1 deletion src/qml/SideBar/Sidebar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import "../"
ScrollView {
id: sidebarScrollView
clip: true
wheelEnabled: false
wheelEnabled: column.height > sidebarScrollView.height
signal sideBarListChanged(string type, string displayName)
property int currentImportCustomIndex: 0 //自动导入相册当前索引值
property int currentCustomIndex: 0 //自定义相册当前索引值
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BaseView {

// 筛选类型改变处理事件
onFilterTypeChanged: {
if (visible)
if (visible && !GStatus.loading)
flushHaveImportedView()
}

Expand Down

0 comments on commit 7806e5d

Please sign in to comment.