[PR #18] Fix Live2D models horizontally squished on Firefox with resist fingerprinting #17

Open
opened 2026-10-15 13:25:58 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SillyTavern/Extension-Live2d/pull/18
Author: @dynameow
Created: 8/2/2026
Status: 🔄 Open

Base: main ← Head: fix/firefox-canvas-squish


📝 Commits (1)

  • fc4e60f Fix Live2D models horizontally squished on Firefox

📊 Changes

4 files changed (+30 additions, -1 deletions)

View changed files

📝 index.js (+4 -0)
📝 live2d.js (+2 -1)
📝 ui.js (+7 -0)
📝 window.html (+17 -0)

📄 Description

I encountered an issue where the model was squished horizontally on firefox. This was caused by
resolution: 2 * window.devicePixelRatio, . Further investigation revealed that the issue only occured when resistFingerprinting was on. This is due to RF spoofing window.devicePixelRatio.

Removing '2*' from the setting fixed the issue, however as it was added to reduce blur on big screens (github.com/dynameow/Extension-Live2d@800a567358 (diff-e1467f3180)) I decided to make it a setting instead of removing it entirely.

Also added autoDensity: true, which is mentioned in the pixi docs


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SillyTavern/Extension-Live2d/pull/18 **Author:** [@dynameow](https://github.com/dynameow) **Created:** 8/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/firefox-canvas-squish` --- ### 📝 Commits (1) - [`fc4e60f`](https://github.com/SillyTavern/Extension-Live2d/commit/fc4e60f5f5caf006275e5afeb7aea106300ecbd7) Fix Live2D models horizontally squished on Firefox ### 📊 Changes **4 files changed** (+30 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `index.js` (+4 -0) 📝 `live2d.js` (+2 -1) 📝 `ui.js` (+7 -0) 📝 `window.html` (+17 -0) </details> ### 📄 Description I encountered an issue where the model was squished horizontally on firefox. This was caused by ` resolution: 2 * window.devicePixelRatio, ` . Further investigation revealed that the issue only occured when resistFingerprinting was on. This is due to RF spoofing window.devicePixelRatio. Removing '2*' from the setting fixed the issue, however as it was added to reduce blur on big screens (https://github.com/dynameow/Extension-Live2d/commit/800a5673580018b548c31e2d25e8b41b2f3c1586#diff-e1467f318018d57438b33a267ddcba98532167f7a72cadc9d229a91594dc423cR251) I decided to make it a setting instead of removing it entirely. Also added `autoDensity: true,` which is mentioned in the pixi [docs](https://pixijs.download/v6.5.2/docs/PIXI.Application.html) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-Live2d#17
No description provided.