Calum Posted April 8, 2020 Share Posted April 8, 2020 Hi everyone, Thought I'd post this on here as maybe someone will be able to help... I am trying to create a "mouseListener" effect on a WiX platform - as they do not have it. I am tying to go around it a different way and looking for some ideas. This is how far I have got: import wixWindow from 'wix-window'; $w.onReady(function () { wixWindow.getBoundingRect() .then((windowSizeInfo) => { let windowHeight = windowSizeInfo.window.height; // let windowWidth = windowSizeInfo.window.width; // let documentHeight = windowSizeInfo.document.height; // let documentWidth = windowSizeInfo.document.width; // let scrollX = windowSizeInfo.scroll.x; // let scrollY = windowSizeInfo.scroll.y; // console.log(windowSizeInfo); }); I was thinking that maybe there is a way to check to see if say: scrollYa is greater than scrollYb or visa versa. But to do that I would need a way of creating Ya and Yb... but I simply am stuck. Sorry if it's not the right place to post this. Calum Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now