1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 11:35:35 +03:00

Adapt VimR to RxSwift 5

This commit is contained in:
Tae Won Ha 2019-05-01 08:11:25 +02:00
parent 648236489c
commit ddcdb13398
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ class MainWindow: NSObject,
let workspace: Workspace let workspace: Workspace
let neoVimView: NvimView let neoVimView: NvimView
let scrollDebouncer = Debouncer<Action>(interval: 0.75) let scrollDebouncer = Debouncer<Action>(interval: .milliseconds(750))
let cursorDebouncer = Debouncer<Action>(interval: 0.75) let cursorDebouncer = Debouncer<Action>(interval: .milliseconds(750))
var editorPosition = Marked(Position.beginning) var editorPosition = Marked(Position.beginning)
let tools: [Tools: WorkspaceTool] let tools: [Tools: WorkspaceTool]

View File

@ -118,7 +118,7 @@ class PreviewTool: NSView, UiComponent, WKNavigationDelegate {
.disposed(by: self.disposeBag) .disposed(by: self.disposeBag)
self.webviewMessageHandler.source 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 .subscribe(onNext: { [weak self] position, scrollTop in
guard let uuid = self?.uuid, guard let uuid = self?.uuid,
let previewPosition = self?.previewPosition else { return } let previewPosition = self?.previewPosition else { return }