I have created a script to enable/disable the full screen in web page (React JS). On the web page on click button web page scrolls to top. Scroll to top is working fine in normal web page but when full screen is enabled scroll is not working. Also, I used the scrollToElement React JS package for scrolling but this is also not working.
import React from 'react';
import {FullScreen, useFullScreenHandle}
export const A = () => {
/* Click handler to enable the scroll to root*/
handleClick = () => {
window.scrollTo( 0, 0)
}
return (<FullScreen handle={handle}>
<button onclick={ () => handleClick() }>Scroll To Top</button>
</FullScreen>)
}
In Fullscreen scroll is not working.
