Re:Qualities that I believe make the most difference in prog...
by unoti on Wednesday March 01, 2017 @12:02AM
(#13761307)
I'm not talking about manually implementing a virtual scrollable canvas. I'm talking about "make item 19 in that list box visible in the middle of It's display area."
I agree that scrolling virtual spaces should be native and hardware accelerated whenever possible, but I think we are talking about different use cases.
Re:Qualities that I believe make the most difference in prog...
by collinmanderson on Wednesday March 01, 2017 @09:33PM
(#13770927)
document.querySelector('.item-19').scrollIntoView()
Putting a "smooth scrolling" library in makes about as much sense as rendering all of your site's text on canvas because some computers have font aliasing issues. It reeks of a micromanaging CEO getting fixated on some arbitrary requirement that makes stuff look better only on his computer.