fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.35k stars 343 forks source link

client: Double click on title to mark entry as read #1469

Open PhrozenByte opened 7 months ago

PhrozenByte commented 7 months ago

Ten years after #450 (I'm feeling old...) it's time to try again to finally bring feature to upstream: Double click on an entry's title to mark it as read (and double click again to mark it as unread; disabled on smartphones due to the different UI concept).

I believe that this should be the default behaviour, but since it must add a delay to distinguish between single and double clicks, some people might find it obstructive, thus I've deliberately added it as opt-in using the new double_click_mark_as_read option.

This was the first time I worked with React. So please check whether the code I've written (including the handleMultiClick function and its usage, I'm not sure whether useCallback still makes sense there) is like it's expected for React.

netlify[bot] commented 7 months ago

Deploy Preview for selfoss canceled.

Name Link
Latest commit 430fa8f873030064202b7fa4db50ea1d288ac607
Latest deploy log https://app.netlify.com/sites/selfoss/deploys/6560bc6498660500084e1332