Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Movement disabled when using a custom bounding box and dragging outside the original bounding box #243

Closed
StefanLeng opened this issue Jan 12, 2025 · 1 comment

Comments

@StefanLeng
Copy link

This is more a request for advice than a bug report, it’s probably me doing something wrong.
I created a module for the GURPS system that changes the bounding box of non-rectangular tokens to account for token rotation.

https://github.com/StefanLeng/gurps-gridless

Without Elevation Ruler, I can drag anywhere in the custom bounding box to initiate movement.

But with Elevation Ruler enabled, I can initiate movement only if I drag in the area where the original bounding box and the changed bounding box overlaps. If I drag in the custom bounding box, but outside the original bounding box, I get a red ruler, and no movement is done after dragging.

Do you know about anything I need to do additionally to get your excellent module working with this custom bounding box?

@StefanLeng
Copy link
Author

I figured it out: I have to alter the token.shape to the same shape as the hitArea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant