SO answer 48935567 vs 62549061 (original whitespace)

Created Diff never expires
15 eliminaciones
Líneas
Total
Eliminado
Palabras
Total
Eliminado
Para continuar usando esta función, actualice a
Diffchecker logo
Diffchecker Pro
19 líneas
5 adiciones
Líneas
Total
Añadido
Palabras
Total
Añadido
Para continuar usando esta función, actualice a
Diffchecker logo
Diffchecker Pro
14 líneas
import Cocoa

@IBDesignable
@objc(BCLDisablableScrollView)
public class DisablableScrollView: NSScrollView {
public class DisablableScrollView: NSScrollView {
@IBInspectable
@IBInspectable
@objc(enabled)
public var isEnabled: Bool = true
public var isEnabled: Bool = true
public override func scrollWheel(with event: NSEvent) {

if isEnabled {
public override func scrollWheel(with event: NSEvent) {
super.scrollWheel(with: event)
if isEnabled {
}
super.scrollWheel(with: event)
else {
}
nextResponder?.scrollWheel(with: event)
else {
nextResponder?.scrollWheel(with: event)
}
}
}
}
}
}