This is not a LeBot problem. Some trolls are using a Chronomancer skill that pulls the monster next to the caster(or something like this).
When you use "auto attack" and follow the monster, you went to the edge of the room and enters the next screen.
The best way to avoid this is using Master Ranger, because his auto attack is long range, so you don't go after the monster.