We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7e863 commit 1ddba34Copy full SHA for 1ddba34
lib/codemirror.js
@@ -3319,7 +3319,9 @@
3319
"px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: " +
3320
(ie ? "rgba(255, 255, 255, .05)" : "transparent") +
3321
"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
3322
+ if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)
3323
focusInput(cm);
3324
+ if (webkit) window.scrollTo(null, oldScrollY);
3325
resetInput(cm);
3326
// Adds "Select all" to context menu in FF
3327
if (!cm.somethingSelected()) display.input.value = display.prevInput = " ";
0 commit comments