mirror of
https://github.com/SillyTavern/Extension-Live2d.git
synced 2026-10-15 13:32:13 +00:00
[PR #18] Fix Live2D models horizontally squished on Firefox with resist fingerprinting #17
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/Extension-Live2d#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
fc4e60fFix 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.