lyfeyaj / lyfeyaj/swipe

width changes on touch scroll

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
959
Forks
179
PR merge metrics
No merged PRs in 30d

Description

I'm resizing the contained divs in my callback function, and the size/positioning of the divs seems to "jump/settle" only once I scroll over the div (on an iPhone), eg:

all2sides.com/mobile.html

I'm assuming this has something to do with the way I'm resizing the divs in the callback, but I'm not sure.

(relatedly, the widths seem screwed up when viewing this on a desktop, and this does not appear to change with scrolling).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the width and position changes on the linked all2sides.com/mobile.html page on an iPhone and desktop. Inspect the callback that resizes the contained divs, then determine why touch scrolling changes the layout; done means the dimensions remain stable during and after scrolling on both environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.