pixel.js
pixel.js copied to clipboard
PixelJS.Entity::isDruggable do not work
https://github.com/rastating/pixel.js/blob/master/modules/entity.js#L57 call only once on mouse down and point.x === this.pos.x in this moment.
Hey @SowingSadness - I'm not currently working on this project unfortunately, however, to accommodate for that scenario it should just be a case of changing the if statement to read:
if (point.x == this.pos.x) || (point.x >= this.pos.x && point.x <= this.pos.x + this.size.width) {
I will look into fixing and testing this when I get more time to pick it back up though. In the mean time though, give that solution a try and I think it will fix the issue :)