BookStatusWidget: improve note gesture handling (#15311)

Fixes #15134.
This commit is contained in:
Frans de Jonge authored and GitHub committed 2026-04-27 18:24:04 +02:00
1 parent cb3fb5b663
commit 1ad6674eec
1 file changed
+7 -1
+7 -1
View File
@@ -462,9 +462,15 @@ function BookStatusWidget:genSummaryGroup(width)
self.note_widget,
}
self.note_frame.onGesture = function(frame, ev)
if ev and ev.ges == "tap" then
if ev and ev.ges == "tap"
and ev.pos
and self.note_frame
and self.note_frame.dimen
and ev.pos:intersectWith(self.note_frame.dimen)
then
return self:openReviewDialog()
end
return false
end
table.insert(self.layout, {self.note_frame})