internetarchive / internetarchive/bookreader

Translation text layer blur large and incorrectly offset from expected position

Open
#1,457 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
491
Avg merge
2d 15h
Merged PRs (30d)
3

Description

**Description**

When the translation plugin is active, the blur that covers the original text image is not directly over the text selection layer. This results in an odd period where the blur element is partially off of the page image before it correctly snaps into the right place.

**Evidence / Screenshot (if possible)**

Image

**Expectation**

We should expect the blur to be sized and positioned properly over the text.

**Context**

This behavior has mostly been observed in Chrome and could potentially affect other Chromium based browsers

**Proposal & Constraints**

It may be best to only show the blur translate layer after models are loaded + after translated text is completed?

**Stakeholders**

@schu96 @cdrini

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.