diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-04-14 15:01:59 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-04-14 15:01:59 +0000 |
commit | d2a270d64ee1dd3b0d719359170e2d6511fcb669 (patch) | |
tree | 19e97f04bb7f41496093ac568f62fe2f4a2b0ae3 /AppKit | |
parent | 2ec34654040eecce81ec605fc5224db9737ae051 (diff) |
[Author: thomasvl]
Want mouse up not down for the animation slowdowns.
R=dmaclach
DELTA=7 (0 added, 0 deleted, 7 changed)
Diffstat (limited to 'AppKit')
-rw-r--r-- | AppKit/GTMNSAnimation+Duration.h | 4 | ||||
-rw-r--r-- | AppKit/GTMNSAnimation+Duration.m | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/AppKit/GTMNSAnimation+Duration.h b/AppKit/GTMNSAnimation+Duration.h index 060d0b8..d899ca6 100644 --- a/AppKit/GTMNSAnimation+Duration.h +++ b/AppKit/GTMNSAnimation+Duration.h @@ -34,8 +34,8 @@ NSTimeInterval GTMModifyDurationBasedOnCurrentState(NSTimeInterval duration, // The standard eventmask that you want for the methods in this file. Some apps // (eg Chrome) may not want to have animations fire on key strokes, so will use -// just NSLeftMouseDownMask instead. -extern const NSUInteger kGTMLeftMouseDownAndKeyDownMask; +// just NSLeftMouseUpMask instead. +extern const NSUInteger kGTMLeftMouseUpAndKeyDownMask; // Categories for changing the duration of an animation based on the current // event. Right now they track the state of the shift and control keys to slow diff --git a/AppKit/GTMNSAnimation+Duration.m b/AppKit/GTMNSAnimation+Duration.m index 18ebf80..e3d0d81 100644 --- a/AppKit/GTMNSAnimation+Duration.m +++ b/AppKit/GTMNSAnimation+Duration.m @@ -18,8 +18,8 @@ #import "GTMNSAnimation+Duration.h" -const NSUInteger kGTMLeftMouseDownAndKeyDownMask - = NSLeftMouseDownMask | NSKeyDownMask; +const NSUInteger kGTMLeftMouseUpAndKeyDownMask + = NSLeftMouseUpMask | NSKeyDownMask; NSTimeInterval GTMModifyDurationBasedOnCurrentState(NSTimeInterval duration, NSUInteger eventMask) { |