Svelte: Cross browser <:Window> scrollX / scrollY support

Created on 15 Feb 2018  路  2Comments  路  Source: sveltejs/svelte

See: https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY#Notes

I think it's right to leave the names as scrollX and scrollY in Svelte; but for backwards compatibility pageYOffset is more supported. We'll do both here.

internals

Most helpful comment

Released 1.56.1 with the fix, thank you!

All 2 comments

Based on feedback, only doing pageYOffset and pageXOffset.

Released 1.56.1 with the fix, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidcallanan picture davidcallanan  路  3Comments

ricardobeat picture ricardobeat  路  3Comments

bestguy picture bestguy  路  3Comments

AntoninBeaufort picture AntoninBeaufort  路  3Comments

angelozehr picture angelozehr  路  3Comments