Merge text.love
This commit is contained in:
commit
e59995b83c
2
edit.lua
2
edit.lua
|
@ -212,13 +212,11 @@ end
|
||||||
function edit.mouse_wheel_move(State, dx,dy)
|
function edit.mouse_wheel_move(State, dx,dy)
|
||||||
if dy > 0 then
|
if dy > 0 then
|
||||||
State.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos}
|
State.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos}
|
||||||
edit.put_cursor_on_next_text_line(State)
|
|
||||||
for i=1,math.floor(dy) do
|
for i=1,math.floor(dy) do
|
||||||
Text.up(State)
|
Text.up(State)
|
||||||
end
|
end
|
||||||
elseif dy < 0 then
|
elseif dy < 0 then
|
||||||
State.cursor1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}
|
State.cursor1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}
|
||||||
edit.put_cursor_on_next_text_line(State)
|
|
||||||
for i=1,math.floor(-dy) do
|
for i=1,math.floor(-dy) do
|
||||||
Text.down(State)
|
Text.down(State)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue