Mouse Bug since 1.6.1 Update

when i click with the mouse at random places to the right end of the screen my character will just run off to the left for a couple of squares and then spam left right left right left right and stop... like if he doesnt know how to get there.. even tho the path is clear 🙁 not 100% of the time but maybe like 1 out of 4 squares that i click when going right will suddenly make me go left.

not in relation with my previous problem but similar to it i have another problem, when i make the map (looping both side) when i arrive at the end of the map loop when i click lets say on the far left side my character will turn right since i actualy clicked on the right side of the map since it was the end of the map to the left.

please help 🙁!! ttyyy
Untitled.png
Untitled.png

Original thread: https://forums.rpgmakerweb.com/threads/mouse-bug-since-1-6-1-update.96274/