Comments (9)
Yeah, that's in the plans 😄
from hackerweb.
Just forked the repo. I'll take a look into it soon!
from hackerweb.
Do you think this is something that might be better in tappable?
from hackerweb.
I think it's better be a separate piece of code. The rough idea I had in mind is a touchmove
event to grab the scrollTop values and animate the rotation of arrow, and touchend
to detect if scrollTop reaches a certain threshold then begin refreshing.
from hackerweb.
So, still thinking of doing this? I didn't realize there was a patent on this when I suggested it... Now, according to the IPA, Twitter won't do anything, but I'm just wondering if you were still hoping to implement this...
from hackerweb.
Yeah, I think it's okay for now on the patent stuff. Before I try to implement this, I did some research and read this on Quora: http://www.quora.com/What-are-some-reasons-to-not-implement-Pull-to-refresh-UIs-and-actions-into-an-iPhone-app
Among the reasons, one that doesn't work for hnmobile is that the list of stories is not a timeline. Frontpage stories are sorted not by time but by upvotes + time + magic, so when doing pull-to-refresh, new items are not prepended to the list, the whole list just change. The feature may be cool, but not intuitive in this context, so I'm holding off till there's a better solution or a new paradigm appears. Also keeping this issue open as a reminder for myself 😄
If you're curious if pull-to-refresh may work at all in a -webkit-overflow-scrolling: touch
container, here's another project that manage to implement it, which is worth reading the code: https://github.com/Harrison/Messenger
from hackerweb.
I think you are right on about the UX here. Perhaps shake to refresh would be better, but a browser based app might make that un-workable... and there's this: https://speakerdeck.com/u/mccasal/p/the-ux-of-shake-to-refresh-on-iphone-dark-side-of-ux 😄
Thanks for the tip to the Messenger app.
from hackerweb.
Hah! It is possible with shake.js https://github.com/alexgibson/shake.js/ 😃
from hackerweb.
Well, it might make more sense with the whole idiom of HN shaking things up with a refresh, but I don't know if that's necessarily the best idea to go with... 😉
from hackerweb.
Related Issues (20)
- Find on the page broken on IOS8 Safari HOT 2
- "About" panel visible on bottom of screen on large viewports. HOT 1
- Merge ipad ui into desktop ui HOT 6
- Implement Service Workers HOT 1
- Stop supporting IE9
- Make sticky header clickable
- Use hackerwebapp.com domain for the app? HOT 6
- Outdated content HOT 11
- No comments on iOS Safari sometimes HOT 1
- Add keyboard navigation HOT 3
- Filter Content (Ask, Show, New) HOT 1
- Dark mode feature request HOT 2
- remove cloudflare HOT 2
- Upvote a post HOT 2
- [Firefox] Brief flash of white HOT 5
- iPhone SE (2020) defaults to 'web' theme. HOT 8
- .
- service-worker.js should ignore requests where URL has chrome-extension scheme:
- Unnecessary calls to hw.news.render().
- Add anchors to comments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackerweb.