You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/svelte/src/reactivity/window/index.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ export const outerHeight = new ReactiveValue(
53
53
);
54
54
55
55
/**
56
-
* `screenLeft.current` is a reactive view of `window.screenLeft`. On the server it is `undefined`.
56
+
* `screenLeft.current` is a reactive view of `window.screenLeft`. It is updated inside a `requestAnimationFrame` callback. On the server it is `undefined`.
57
57
*/
58
58
exportconstscreenLeft=newReactiveValue(
59
59
BROWSER ? ()=>window.screenLeft : ()=>undefined,
@@ -75,7 +75,7 @@ export const screenLeft = new ReactiveValue(
75
75
);
76
76
77
77
/**
78
-
* `screenTop.current` is a reactive view of `window.screenTop`. On the server it is `undefined`.
78
+
* `screenTop.current` is a reactive view of `window.screenTop`. It is updated inside a `requestAnimationFrame` callback. On the server it is `undefined`.
* `screenLeft.current` is a reactive view of `window.screenLeft`. On the server it is `undefined`.
1991
+
* `screenLeft.current` is a reactive view of `window.screenLeft`. It is updated inside a `requestAnimationFrame` callback. On the server it is `undefined`.
* `screenTop.current` is a reactive view of `window.screenTop`. On the server it is `undefined`.
1995
+
* `screenTop.current` is a reactive view of `window.screenTop`. It is updated inside a `requestAnimationFrame` callback. On the server it is `undefined`.
0 commit comments