1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00

GH-374 Modify hitTest such that it takes the selected tool into account

This commit is contained in:
Tae Won Ha 2017-04-17 12:34:49 +02:00
parent 2bedf03e91
commit fdf67b6fc7
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -383,6 +383,11 @@ extension WorkspaceBar {
override func hitTest(_ point: NSPoint) -> NSView? {
let loc = self.convert(point, from: nil)
guard self.isOpen else {
return super.hitTest(point)
}
if self.resizeRect().contains(loc) {
return self
}