Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/old ios safari bugs #14

Merged
merged 7 commits into from
Jul 31, 2020
Merged

Conversation

oftheheadland
Copy link

Ticket: https://app.breeze.pm/projects/100762/cards/3442549

Main changes:
To support older browsers and devices (like iPads)

  • added an event listener for touchstart which is fired on touch events on older iPads.
  • because element.scrollTo() is not supported in older browsers I've switched to a more widely supported function that does the same thing.
  • changed element.style = to element.style.csstext = because in older versions of iOS Safari the style attribute is readonly.

Steps to test:

  1. In the HMW client folder's package.json, change this line:
    "glossary-panel": "github:Eastern-Research-Group/glossary"
    to
    "glossary-panel": "github:Eastern-Research-Group/glossary#bugfix/old-ios-safari-bugs"

  2. Run npm install in the client folder.

  3. Run the app locally. Verify the glossary works as it should.

  4. To test on an older iPad, I used the Browserstack to test my localhost:3000 on Browserstack's iPad Mini 4 - iOS 9.3
    image
    image

  5. Verify that touch events correctly open and close the glossary popup.

Copy link
Collaborator

@cschwinderg cschwinderg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'll go ahead and merge this and then create a PR to update the glossary on the HMW side.

@cschwinderg cschwinderg merged commit 70df15c into master Jul 31, 2020
@cschwinderg cschwinderg deleted the bugfix/old-ios-safari-bugs branch July 31, 2020 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants