mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 23:36:08 +03:00
Adapt VimR to RxSwift 5
This commit is contained in:
parent
648236489c
commit
ddcdb13398
@ -30,8 +30,8 @@ class MainWindow: NSObject,
|
||||
let workspace: Workspace
|
||||
let neoVimView: NvimView
|
||||
|
||||
let scrollDebouncer = Debouncer<Action>(interval: 0.75)
|
||||
let cursorDebouncer = Debouncer<Action>(interval: 0.75)
|
||||
let scrollDebouncer = Debouncer<Action>(interval: .milliseconds(750))
|
||||
let cursorDebouncer = Debouncer<Action>(interval: .milliseconds(750))
|
||||
var editorPosition = Marked(Position.beginning)
|
||||
|
||||
let tools: [Tools: WorkspaceTool]
|
||||
|
@ -118,7 +118,7 @@ class PreviewTool: NSView, UiComponent, WKNavigationDelegate {
|
||||
.disposed(by: self.disposeBag)
|
||||
|
||||
self.webviewMessageHandler.source
|
||||
.throttle(0.75, latest: true, scheduler: self.scheduler)
|
||||
.throttle(.milliseconds(750), latest: true, scheduler: self.scheduler)
|
||||
.subscribe(onNext: { [weak self] position, scrollTop in
|
||||
guard let uuid = self?.uuid,
|
||||
let previewPosition = self?.previewPosition else { return }
|
||||
|
Loading…
Reference in New Issue
Block a user