mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-10 18:24:39 +00:00
Disable preview follow after dragging the scrollbar
TBD: Should we re-enable follow once the offset reaches the bottom?
This commit is contained in:
parent
80b8846318
commit
4d22b5aaef
@ -3177,6 +3177,7 @@ func (t *Terminal) Loop() {
|
||||
y = util.Constrain(y, 0, effectiveHeight-barLength)
|
||||
// offset = (total - maxItems) * barStart / (maxItems - barLength)
|
||||
t.previewer.offset = headerLines + int(math.Ceil(float64(y)*float64(numLines-effectiveHeight)/float64(effectiveHeight-barLength)))
|
||||
t.previewer.following = false
|
||||
req(reqPreviewRefresh)
|
||||
}
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user