altv-issues
altv-issues copied to clipboard
WebView size & Position change does not work for cursor
Description of the problem
When I create a webview and set a browser size and position, the cursor is in the wrong position.
(The cursor is at the position when the browser position has not been changed)
Reproduction steps
Create a webview and set a size and position
const screenWidth = alt.getScreenResolution().x;
const screenHeight = alt.getScreenResolution().y;
const browserWidth = screenWidth * 0.7;
const browserHeight = screenHeight * 0.7;
const posX = (screenWidth - browserWidth) / 2;
const posY = (screenHeight - browserHeight) / 2;
webview = new alt.WebView('resource/permissionsmanagerweb/build/web/index.html', false, { x: posX, y: posY }, { x: browserWidth, y: browserHeight });
The website need buttons.
If you want to press the button the mouse have to be at the wrong position (The position if the browser is at position 0.0)
Expected behaviour
I have expoected that if I move the cursor over the button on the webiste i can click the button.
Additional context
No response
Operating system
Windows 11
Version
alt:V Server 16.2.1 (release)
Crashdump ID
No response
Confirmation of issue's presence
- [X] By submitting this ticket, I affirm that I have verified the presence of this issue on the latest developer version available at the time of writing this ticket.