Skip to content

Fix compare mode: side-by-side split view centers each frame in its own half#94

Open
chfr19820610-cell wants to merge 1 commit into
mergeos-bounties:masterfrom
chfr19820610-cell:feat/compare-mode-splitview-14
Open

Fix compare mode: side-by-side split view centers each frame in its own half#94
chfr19820610-cell wants to merge 1 commit into
mergeos-bounties:masterfrom
chfr19820610-cell:feat/compare-mode-splitview-14

Conversation

@chfr19820610-cell

Copy link
Copy Markdown

Summary

Fixes #14 — Side-by-side compare mode was clipping both frames at the face midpoint, showing only half of each frame. This fix centers each frame within its own clip region so both frames are fully visible.

Changes

  • packages/tryon-js/src/overlay.js: In drawGlassesOverlay, compute xOffset per half — frame A shifts left by midX - halfW/2, frame B shifts right by halfW/2 - midX. Each frame now renders centered in its own half of the canvas.
  • packages/web/assets/beear-tryon.js and packages/android/.../beear-tryon.js: Synced the same fix.

Visual improvements

  • Dashed divider line (instead of solid) for a cleaner split
  • Bold A/B labels
  • Frame names displayed beneath each label

Testing

  • Verified locally via GitHub Pages build
  • Demo face with two different frames selected shows proper side-by-side comparison

Closes #14

Issue mergeos-bounties#14: Compare mode split view properly centers each frame
within its clip region, showing each frame fully rather than
cut in half at the midpoint.

- overlay.js (source): adjust xOffset per half so frame A
  centers in left half, frame B in right half
- beear-tryon.js (web + android bundles): same fix
- Visual: dashed divider, bold A/B labels, frame names below
@TUPM96 TUPM96 added star: missing Must follow org AND star mergeos + mergeos-contracts evidence: provided PR includes acceptable visual/media evidence labels Jul 19, 2026
@TUPM96

TUPM96 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

13 similar comments
@TUPM96

TUPM96 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

@TUPM96

TUPM96 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@chfr19820610-cell Gate 1 (badges) blocked on mergeos-bounties/BeeAR.

Badge Status
star / follow missing (core stars + org follow — not only this product repo)
evidence provided

Required community actions

Follow the org

Star both core repos

  • (checking…)

Done:

  • Starred mergeos-bounties/mergeos
  • Starred mergeos-bounties/mergeos-contracts

Policy: bounty Gate 1 requires all of:

  1. Follow https://github.com/mergeos-bounties
  2. Star https://github.com/mergeos-bounties/mergeos
  3. Star https://github.com/mergeos-bounties/mergeos-contracts

Starring only mergeos-bounties/BeeAR (or any single product) is not enough.

Order: badges → security → tests → merge.

Please complete the checklist above, attach evidence if needed, then comment when ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

evidence: provided PR includes acceptable visual/media evidence star: missing Must follow org AND star mergeos + mergeos-contracts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[50 MRG] Compare mode: two frames side-by-side

2 participants