Skip to content

.interact() on submenus can missclick repeatedly

Summary

SpriteItem.interact() has been updated to use the sub-menu options on several teleportation items. Unfortunately this doesn't always work as intended.

Steps to reproduce

.interact("Ardougne") on achievement diary cape

Example Code

SpriteItem#interact()

What is the current behavior?

.interact() on a submenu option can move the mouse off the menu interface and close it before clicking the teleport option

What is the expected correct behavior?

Mouse shouldn't move off the menu of submenu to not close it.

Relevant logs and/or screenshots

https://discord.com/channels/111463304332845056/519555893122170882/1412856219634241679

Possible fixes

Mouse shouldn't move off the menu of submenu to not close it.