osx: Implement draggable region with mouseDownCanMoveWindow
authorCheng Zhao <zcbenz@gmail.com>
Tue, 20 Oct 2015 23:33:43 +0000 (07:33 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 21 Oct 2015 00:54:46 +0000 (08:54 +0800)
commitd092c6acc956fd5b2c4e1431f9a25dbac17e681b
tree498bf6c42ecf9b073dbe2dba4a36aeb845f6ea7b
parentc92889462789b540f6f3f583a10ddd80af8e95b7
osx: Implement draggable region with mouseDownCanMoveWindow

Previously we implemented draggable region by tracking mouse position,
it is buggy and causing some problems. But it is interesting that until
this didn't cause troubles until recently.
atom/browser/native_window.cc
atom/browser/native_window.h
atom/browser/native_window_mac.h
atom/browser/native_window_mac.mm