From 03f2e72ec7d059c8089630b8d143e0b42407e30e Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 26 Jan 2017 14:39:48 +0100 Subject: [PATCH] No FastRenderedViewLine on Safari (#19222) --- src/vs/editor/browser/viewParts/lines/viewLine.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/editor/browser/viewParts/lines/viewLine.ts b/src/vs/editor/browser/viewParts/lines/viewLine.ts index 6f39cbde638..2af1a0d9088 100644 --- a/src/vs/editor/browser/viewParts/lines/viewLine.ts +++ b/src/vs/editor/browser/viewParts/lines/viewLine.ts @@ -24,7 +24,7 @@ const canUseFastRenderedViewLine = (function () { return true; } - if (platform.isLinux || browser.isFirefox) { + if (platform.isLinux || browser.isFirefox || browser.isSafari) { // On Linux, it appears that zooming affects char widths (in pixels), which is unexpected. // -- // Even though we read character widths correctly, having read them at a specific zoom level @@ -34,6 +34,8 @@ const canUseFastRenderedViewLine = (function () { // but until then we have to stick with reading client rects. // -- // The same has been observed with Firefox on Windows7 + // -- + // The same has been oversved with Safari return false; } -- GitLab