树点击选不中问题
This commit is contained in:
parent
e80655c327
commit
9debdc84b8
@ -180,11 +180,11 @@ ScrollView {
|
||||
anchors.fill: parent
|
||||
drag.target: dragRect
|
||||
onPressed: {
|
||||
timer.startTimer(() => {
|
||||
// timer.startTimer(() => {
|
||||
view.start_drag = true
|
||||
dragRect.Drag.active = true
|
||||
dragRect.Drag.source = dragRect
|
||||
}, 100)
|
||||
// }, 100)
|
||||
}
|
||||
onReleased: {
|
||||
timer.stopTimer(()=> {
|
||||
@ -201,12 +201,12 @@ ScrollView {
|
||||
currentItem = model
|
||||
console.log("click modelId =" + model.id)
|
||||
}
|
||||
hoverEnabled: true
|
||||
onEntered: {
|
||||
// console.log(rowfill_cur.mapToItem(view, 0, 0).x)
|
||||
}
|
||||
onExited: {
|
||||
}
|
||||
// hoverEnabled: true
|
||||
// onEntered: {
|
||||
// // console.log(rowfill_cur.mapToItem(view, 0, 0).x)
|
||||
// }
|
||||
// onExited: {
|
||||
// }
|
||||
}
|
||||
|
||||
Drag.active: mouseArea.drag.active
|
||||
|
Loading…
x
Reference in New Issue
Block a user