Skip to content

Implement circular navigation for interfaces in traffic_window#9

Open
uno20001 wants to merge 1 commit into
rolandriegel:masterfrom
uno20001:circular_navigation_traffic_window
Open

Implement circular navigation for interfaces in traffic_window#9
uno20001 wants to merge 1 commit into
rolandriegel:masterfrom
uno20001:circular_navigation_traffic_window

Conversation

@uno20001

Copy link
Copy Markdown

This commit introduces a change that implements circular navigation for interfaces in traffic_window.

implement circular navigation for interfaces in traffic_window
@snosratiershad

Copy link
Copy Markdown

@uno20001 Thanks I was looking to implement this.

Comment thread src/traffic_window.cpp
m_curDev = (int)deviceViews.size() + (m_curDev % (int)deviceViews.size());

if(m_curDev >= (int)deviceViews.size())
m_curDev %= (int)deviceViews.size();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it felt a little slow to me when spamming arrow keys. but works as promised.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants