Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zoom presets should keep time aligned to "now" #216

Closed
r00t- opened this issue Jan 8, 2015 · 3 comments · Fixed by #218
Closed

zoom presets should keep time aligned to "now" #216

r00t- opened this issue Jan 8, 2015 · 3 comments · Fixed by #218

Comments

@r00t-
Copy link
Contributor

r00t- commented Jan 8, 2015

... at least / especially if the "now" button was used before.
this bugs me too, and it's old:

http://volkszaehler.org/pipermail/volkszaehler-dev/2014-May/003592.html

Einen Verbesserungsvorschlag fürs Frontend würde ich auch gerne Vorschlagen:

Beim Zoom auf die Stunde nach Verwendung von "jetzt" fände ich es
angenehm, wenn auf die aktuelle Stunde gezoomt würde und nicht die
mittlere Position der Darstellung
genommen wird, was im Test bei mir gestern regelmässig 12 h früher war.

Wo ist der richtige Ort für solche Change Requests/Bug Reports?

@andig
Copy link
Contributor

andig commented Jan 8, 2015

+1 leider gabs im Code keine offensichtliche einfache Möglichkeit dafür.

@jahir
Copy link
Member

jahir commented Jan 8, 2015

Sollte recht einfach sein. Zoom+ macht das ja auch schon. Dabei wird das Flag vz.wui.tmaxnow ausgewertet (siehe https://github.com/volkszaehler/volkszaehler.org/blob/master/htdocs/frontend/javascripts/wui.js#L562), das kann auch für die anderen Zoomstufen übernommen werden.

Allerdings wäre es evt. sinnvoller, rechts eine checkbox für diesen "sticky" mode zu setzen und das Verhalten darüber zu steuern. DIe aktuelle Logik in Zeile 430 ist auch eher optimisch (gelinde gesagt) und könnte auch mal gerade gezogen werden.

@andig andig mentioned this issue Jan 9, 2015
@andig
Copy link
Contributor

andig commented Jan 9, 2015

Bitte testen- Apple-like ohne Checkbox!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants