From 552940b5477936f78c0bb44cdd83dbfa028dd345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Fri, 21 Oct 2016 17:44:24 +0200 Subject: [PATCH] Change wxOSX ShowWithEffect() delay to 200ms Change the animation delay from ridiculously long (half a second) to somewhat more reasonable 200ms to bring it in line with Windows per the comment in this code. Feels more similar to native macOS animations now too. --- src/osx/cocoa/window.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 062bdedffb..87429a2d14 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -2044,7 +2044,7 @@ wxWidgetCocoaImpl::ShowViewOrWindowWithEffect(wxWindow *win, { // what is a good default duration? Windows uses 200ms, Web frameworks // use anything from 250ms to 1s... choose something in the middle - timeout = 500; + timeout = 200; } [anim setDuration:timeout/1000.]; // duration is in seconds here