Skip to content

Commit

Permalink
Fix incorrect mouseclick position
Browse files Browse the repository at this point in the history
Uses a new function in micro-1.3.5-dev.67
  • Loading branch information
sum01 committed Jan 9, 2018
1 parent b35b015 commit 6d3035b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filemanager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ function preMousePress(view, event)
if view == tree_view then
local x, y = event:Position()
-- Fixes the y because softwrap messes with it
local new_x, new_y = tree_view:GetSoftWrapLocation(x, y)
local new_x, new_y = tree_view:GetMouseClickLocation(x, y)
-- Try to open whatever is at the click's y index
-- Will go into/back dirs based on what's clicked, nothing gets expanded
try_open_at_y(new_y)
Expand Down

0 comments on commit 6d3035b

Please sign in to comment.