I need to simulate mousemove by javascript ( or maybe jquery)
but any attemps are resulting in isTrusted=false
I got keyboard working, but mouse not...
an example of failed attempt:
using this to debug:
bad result:
So I ask you please, do you know any way to "bypass" the isTrusted property or even any browser that ignores that kinda protection?
but any attemps are resulting in isTrusted=false
I got keyboard working, but mouse not...
an example of failed attempt:
Code:
var event = new MouseEvent('mousemove', {
view: window,
bubbles: true,
cancelable: true,
clientX: 500,
clientY: 50,
movementX: 0
});
Code:
target.onmousemove = function(eventData) {
console.log(eventData);
}
Code:
> MouseEvent*{isTrusted: false, screenX: 0, screenY: 0, clientX: 1, clientY: 1,*…}