question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement touch gestures actions

See original GitHub issue
  • t.pullUp,
  • t.pullDown,
  • t.swipeRight,
  • t.swipeLeft.

Which will gracefully degrade to scrolling on devices without touch support.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:38
  • Comments:27 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
hitautodestructcommented, Nov 27, 2019

Still waiting for t.scroll() We have a virtual scroller on an app page. This would come in very handy since a targeted element does not exist until the scroll is activated and therefore can’t be reached by the current testcafe targeting scheme

3reactions
talentedunicorncommented, Nov 29, 2018

I’ve been using ClientFunction wrapped in a helper function that I import in my tests. The whole snippet looks like this

export const scroll = ClientFunction((x, y) => window.scrollBy(x, y))

Which i will letter use like so for vertical scrolling:

test('something that needs to scroll', await t => {
....
await scroll(0, divHeight);
expect(....).ok()
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

touch-action - CSS: Cascading Style Sheets - MDN Web Docs
The touch-action CSS property sets how an element's region can be manipulated by a touchscreen user (for example, by zooming features built into ......
Read more >
Use touch gestures - Android Developers
Learn how to detect basic touch gestures such as scrolling, flinging, and double-tapping, using GestureDetector . Track touch and pointer ...
Read more >
Gestures and Touch Events | CodePath Android Cliffnotes
Within an onTouch event, we can then use a GestureDetector to understand gestures based on a series of motion events. Gestures are often...
Read more >
Touch gestures for Windows - Microsoft Support
Touch gestures ; Show all open windows. Swipe with three fingers up on the screen ; Show the desktop. Swipe with three fingers...
Read more >
Touchscreen gestures - Inputs - Human Interface Guidelines
For example, people expect the pinch gesture to adjust a view's zoom level or scale a selected object. Avoid using a familiar gesture...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found