mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-08 07:13:39 +00:00
Don't redraw device views when you click on them
This commit is contained in:
+6
-1
@@ -183,7 +183,12 @@ function switchDevice(id) {
|
||||
}
|
||||
|
||||
window.switchClass(document.getElementById(id), 'active-device');
|
||||
drawDeviceFrame(id);
|
||||
|
||||
if (!DEVICE.all[id].drawn) {
|
||||
// don't re-draw the whole device frame if it's already drawn
|
||||
drawDeviceFrame(id);
|
||||
}
|
||||
|
||||
window.switchClass(document.getElementById(`device-${id}`), 'active-device-outline');
|
||||
|
||||
document.getElementById('device-settings-table').style.display = 'block';
|
||||
|
||||
Reference in New Issue
Block a user