optimize
This commit is contained in:
		| @@ -95,11 +95,6 @@ function open_rx_photo() { | |||||||
|     e("openwebrx-rx-details-arrow-up").style.display = "block"; |     e("openwebrx-rx-details-arrow-up").style.display = "block"; | ||||||
| } | } | ||||||
|  |  | ||||||
| function style_value(of_what, which) { |  | ||||||
|     if (of_what.currentStyle) return of_what.currentStyle[which]; |  | ||||||
|     else if (window.getComputedStyle) return document.defaultView.getComputedStyle(of_what, null).getPropertyValue(which); |  | ||||||
| } |  | ||||||
|  |  | ||||||
| function updateVolume() { | function updateVolume() { | ||||||
|     audioEngine.setVolume(parseFloat(e("openwebrx-panel-volume").value) / 100); |     audioEngine.setVolume(parseFloat(e("openwebrx-panel-volume").value) / 100); | ||||||
| } | } | ||||||
| @@ -1961,7 +1956,7 @@ function initSliders() { | |||||||
|             step *= -1; |             step *= -1; | ||||||
|         } |         } | ||||||
|         val += step; |         val += step; | ||||||
|         $slider.val(val + (ev.originalEvent.wheelDelta > 0 ? 1 : -1)) |         $slider.val(val + (ev.originalEvent.wheelDelta > 0 ? 1 : -1)); | ||||||
|         $slider.trigger('change'); |         $slider.trigger('change'); | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jakob Ketterl
					Jakob Ketterl