mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
fuzzer web ui: fail scrolling into view gracefully
This commit is contained in:
parent
895fa87d77
commit
1484f174ea
@ -214,7 +214,7 @@
|
||||
// Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work.
|
||||
requestAnimationFrame(function() {
|
||||
const slDom = document.getElementById("l" + sourceLocationIndex);
|
||||
slDom.scrollIntoView({
|
||||
if (slDom != null) slDom.scrollIntoView({
|
||||
behavior: "smooth",
|
||||
block: "center",
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user