Changed workspace to accommodate other views. (#1121)
* Added in the ability to pull scrolls from views, as all views have the capability of scrolling now.
This commit is contained in:
parent
dad0f79708
commit
d1c74f529a
|
@ -92,7 +92,8 @@ local function save_view(view)
|
|||
return {
|
||||
type = "view",
|
||||
active = (core.active_view == view),
|
||||
module = name
|
||||
module = name,
|
||||
scroll = { x = view.scroll.to.x, y = view.scroll.to.y, to = { x = view.scroll.to.x, y = view.scroll.to.y } },
|
||||
}
|
||||
end
|
||||
end
|
||||
|
@ -162,6 +163,9 @@ local function load_node(node, t)
|
|||
if t.active_view == i then
|
||||
active_view = view
|
||||
end
|
||||
if not view:is(DocView) then
|
||||
view.scroll = v.scroll
|
||||
end
|
||||
end
|
||||
end
|
||||
if active_view then
|
||||
|
|
Loading…
Reference in New Issue