mirror of
https://github.com/chinchang/web-maker.git
synced 2025-02-24 07:03:13 +01:00
codeblast only only actual editing/deletion
This commit is contained in:
parent
8f885c5b91
commit
94fd06b1ff
@ -164,7 +164,9 @@ https://twitter.com/JoelBesada/status/670343885655293952
|
||||
requestAnimationFrame(loop);
|
||||
}
|
||||
|
||||
function onCodeMirrorChange(editor) {
|
||||
function onCodeMirrorChange(editor, change) {
|
||||
if (change.origin !== '+input' && change.origin !== '+delete') { return; }
|
||||
|
||||
if (editor.getOption('blastCode') === true || editor.getOption('blastCode').shake === undefined) {
|
||||
throttledShake(editor, 0.3);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user