Closed kektobiologist closed 5 years ago
Can you provide pseudo code? I haven't seen this and my resolution is rarely 1.
I managed to fix it by adding interaction: app.renderer.plugins.interaction
to the Viewport
constructor. I only got this by looking through the code of the Live Example.
The above workaround worked for me as well
Double checking: were you zooming using the mouse wheel?
Yes—that fixed the original bug but I'm having an issue where I can only zoom with the mousewheel in the top-left part of the screen.
Ok. The fix was specific to the wheel() module, so glad it worked.
As to your other issue: are you using a full-screen viewport or only partial? Can you show me how to replicate the bug? It seems to work for me.
I'm not using full screen. It's pixi default size i think which is 800x600
The wheel is only active when the mouse is hovering over the viewport (this allows the wheel to work across multiple viewports). Is your mouse over the viewport when you're using the wheel?
yes. i'll try to make a jsfiddle and then post it for better clarity
Closing this since no response. Feel free to reopen.
When I create a PIXI.Application with
resolution = 2
, the zoom behaviour ofpixi-viewport
is weird. Zooming doesn't happen centred on the mouse pointer but some point outside the viewport.