Dragdetectors disabling Buttons when disabling

I want to make an inventory system where you can drag items between your inventory and your hotbar and decided to use drag detectors to do so.

the issue occurs when my script disables the dragdetectors when closing the inventory whilst the user is dragging, this causes all of the buttons in the container to stop firing the Activated remote.

ive already found a way to mitigate this by simply waiting until the player stops dragging to disable them but this seems like more of a bandage solution, is this just an issue with DragDetectors in general or is it something im doing wrong?

Here is a video of the issue:

any help is appreciated.

1 Like