We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3358a09 commit df9bcecCopy full SHA for df9bcec
1 file changed
internal/ui/preview/preview.go
@@ -141,16 +141,16 @@ func (m *Model) DragStart(x, y int) bool {
141
}
142
143
if m.AtBottom() {
144
- if m.Frame.Min.Y-y > handleSize {
+ if y-m.Frame.Min.Y > handleSize {
145
return false
146
147
} else {
148
- if m.Frame.Min.X-x > handleSize {
+ if x-m.Frame.Min.X > handleSize {
149
150
151
152
153
- m.BeginDrag(x, y)
+ m.BeginDrag(m.Frame.Min.X, y)
154
return true
155
156
0 commit comments