OSDN Git Service

処理を簡素化
authormasakih <masakih@users.sourceforge.jp>
Mon, 9 Oct 2017 07:38:17 +0000 (16:38 +0900)
committermasakih <masakih@users.sourceforge.jp>
Mon, 9 Oct 2017 07:38:17 +0000 (16:38 +0900)
KCD/ExternalBrowserWindowController.swift

index 8f5be82..3f0110e 100644 (file)
@@ -58,14 +58,7 @@ final class ExternalBrowserWindowController: NSWindowController {
             
             if canScroll == newValue { return }
             
-            if newValue {
-                
-                webView.mainFrame.frameView.allowsScrolling = true
-                
-            } else {
-                
-                webView.mainFrame.frameView.allowsScrolling = false
-            }
+            webView.mainFrame.frameView.allowsScrolling = newValue
         }
     }
     @objc dynamic var canMovePage: Bool = true