wsaunders1014 / ShowDragDistance

Shows distance you dragged the token, similar to pressing ctrl.
10 stars 13 forks source link

Not Able to Drag Tokens with Version 9 - Build 238 for Pathfinder 2nd Edition #105

Open lydiaeaves opened 2 years ago

lydiaeaves commented 2 years ago

After updating to Version 9 - Build 238 this module is no longer working and I am unable to move tokens when it is enabled.

Game system is Pathfinder 2nd Edition 3.0.1.9499

Console logs the following error:

showdragdistance.js:479 Uncaught TypeError: Cannot read property 'active' of null at TokenPF2e.Token._onDragLeftMove (showdragdistance.js:479) at MouseInteractionManager.callback (foundry.js:23985) at MouseInteractionManager._handleDragMove (foundry.js:24315) at MouseInteractionManager._handleMouseMove (foundry.js:24289) at e.a.emit (index.js:202) at r.dispatchEvent (interaction.min.js:8) at r.processPointerMove (interaction.min.js:8) at t.recursiveFindHit (interaction.min.js:8) at t.findHit (interaction.min.js:8) at r.processInteractive (interaction.min.js:8)

brucetony commented 2 years ago

Hi all, I decided to create a fork of the repository and compile the changes @749 made into an installable module. I haven't performed any hardcore testing, but it works for now with v9, though I haven't tested it with pathfinder. Here is the link to the manifest that you can use to download it: https://raw.githubusercontent.com/brucetony/ShowDragDistance/main/module.json