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.

Feature: Horizontal Scrolling Support *** Done. Please report any bugs. ***

See original GitHub issue

The scroll command seems to be only dealing with vertical scrolling. How about implementing horizontal scrolling too?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
julianshapirocommented, May 12, 2014

Hey @eldh,

As per the VelocityJS.org/#scroll docs:

The Velocity call always targets the element being scrolled into view. By default, the browser will scroll down to the target element. Alternatively, you can specify a container (parent element) that should be scrolled down to the target element.

Thus, to scroll #content such that #visible is in view, target #visible and set the #content container:

$visible.velocity("scroll", { axis: "x", container: $content })

The offset option is used for adjusting the final scroll position if you don’t want to land exactly at the top or left edge of the element.

Does this help? If not, let’s work to solve your problem.

Also, that image is so awesome. Thanks for sharing the diagram so I could better understand.

0reactions
Rycochetcommented, Oct 17, 2016

@arunsn43 Not sure what you mean. Maybe try asking on StackOverflow as this doesn’t sound like a bug report…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: Horizontal Scrolling Problem - Adobe Support Community
Currently I am using the Logitech's MX Master, with a wheel specifically for horizontal scrolling. But this does not seem to work in...
Read more >
Horizontal scrolling doesn't work and/or produces visual bug
Hi. I have a mouse with a horizontal scroll wheel (Logitech MX Master). Using it to scroll horizontally works fine in most programs, ......
Read more >
Carousel / Side-scroll / Horizontal Scroll – Adobe XD Feedback
Currently there is a "scroll" feature in build, but it seems to be about page scroll and up/down scrollable areas.
Read more >
Horizontal scrolling only works in the content areas, not header
I'm submitting a ... (check one with "x") [x] bug report => see 'Providing a Reproducible Scenario' I am getting the exact same...
Read more >
JDK-8041759 horizontal scroll events support - Bug ID
Please add specific support for horizontal scroll events. ... devices support horizontal scrolling and Linux supports reporting it in a ...
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