David Figatner

Results 212 comments of David Figatner

How does the browser handle node_module imports? For example, how would viewport find pixi's definitions? (Personally, I'd also love to find a way to natively run js files without rollup...

I'm planning on removing penner in the future (on the list). So can you import viewport.js the same way, or do you need a separate .mjs export?

Ok. When I next build the package. I'll add an mjs export and hopefully remove penner.

Are you using the 4.0.0-beta-0 build? If not, then I'm not sure the problem since the code hasn't changed much. If so, then while I didn't change center, I did...

Ah, did you call viewport.resize() with the new screen size? The calculations will be off if you don't update the size. Note that resize event isn't triggered in Chrome when...

Is your `viewport.options.interaction` set properly?

Hmm...this code may have been put in before we had the point-over-viewport check. Is your divWheel element different from PIXI's canvas element? I would think that would be the only...

why isn't the divWheel attached to the canvas element?

Not sure I follow. Can you show the problem in a jsfiddle so I can play with it?

You need babel to compile your node_modules files. Here are some discussions: https://stackoverflow.com/questions/54043498/how-to-transpile-node-modules-modules-with-babel-loader https://stackoverflow.com/questions/51289261/babel-does-not-transpile-imported-modules-from-node-modules