oration icon indicating copy to clipboard operation
oration copied to clipboard

Scroll into view

Open Libbum opened this issue 7 years ago • 1 comments

#68 was merged without the inclusion of one cosmetic feature: scrolling the comment in question into view if it's outside the viewing pane. Seems like Elm doesn't have native capacity to do this, so will need to port out to js to get this done. However, it's not as straightforward as calling document.getElementById(myId).scrollIntoView() from app.js, something more in line with what Dom.Scroll does is needed.

Libbum avatar Dec 07 '17 08:12 Libbum

el.scrollIntoView({behavior:"smooth"}); may give us smooth animations in some browsers. info

Libbum avatar Dec 12 '17 09:12 Libbum