Misplaced hotspots and draggable sprites
My project has a centered DIV which occupies approximately two thirds of the web page. Pixi is 'inside' a CANVAS element in this DIV
Tink's button method works except that the hit area is displaced upwardsand to the left.
I can 'fix' this by changing the code in tink.js in the function 'addGlobalPositionProperties(sprite)' (line 420). I simply add fixed numbers to the returned x and y values to make the hit area co-incide with the sprite rectangle on screen. But if I scale the sprite. the hit area is again displaced.
Also if I make a sprite draggable, the instant I click on that sprite, the sprite itself is displaced to the right - I note that the amount is about the same as the distance from the LHS screen edge to the DIV LHS...
It seems that Tink has issues when the stage is inside a DIV like this...
Any help would be appreciated...