mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-15 21:14:29 +00:00
prevent dom-flickering
This commit is contained in:
1 parent
f216e0198f
commit
cdb2ef3ac7
1 file changed
+4
-1
@@ -2254,7 +2254,10 @@ var _CPCopyPlaceholder = '-';
|
||||
}
|
||||
|
||||
var currentFirstResponder = [[CPApp mainWindow] firstResponder];
|
||||
[currentFirstResponder paste:self];
|
||||
|
||||
setTimeout(function(){ // prevent dom-flickering
|
||||
[currentFirstResponder paste:self];
|
||||
}, 20);
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in new issue
Block a user