Jump to content

Scaling Pixi's HTML accessibility layer?


d13
 Share

Recommended Posts

18 hours ago, ivan.popelyshev said:

@d13 if you mean scaling container without notifying the pixi that you have scaled it - NO

Yes, that's what I mean.

I use a little script called `scaleToWindow` that scales and aligns the Pixi canvas in the browser: https://github.com/kittykatattack/scaleToWindow

If I use this with Pixi's canvas, I guess then it won't also scale the invisible HTML accessibility layer?

Is there some way to target the HTML layer so the it could be scaled like this?

Link to comment
Share on other sites

1 minute ago, d13 said:

Yes, that's what I mean.

I use a little script called `scaleToWindow` that scales and aligns the Pixi canvas in the browser: https://github.com/kittykatattack/scaleToWindow

If I use this with Pixi's canvas, I guess then it won't also scale the invisible HTML accessibility layer?

Is there some way to target the HTML layer so the tit could be scaled like this?

PIXI Interaction has no way of detecting that :( We need to add some variables for renderer, that can be used for that.

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...