mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-28 21:37:50 +02:00
Fixed wonky center tuning behavior
This commit is contained in:
@ -418,7 +418,7 @@ namespace ImGui {
|
||||
}
|
||||
|
||||
// Finally, if nothing else was selected, just move the VFO
|
||||
if (ImGui::IsMouseDown(ImGuiMouseButton_Left) && (mouseInFFT|mouseInWaterfall) && (mouseMoved || hoveredVFOName == "")) {
|
||||
if ((VFOMoveSingleClick ? ImGui::IsMouseClicked(ImGuiMouseButton_Left) : ImGui::IsMouseDown(ImGuiMouseButton_Left)) && (mouseInFFT|mouseInWaterfall) && (mouseMoved || hoveredVFOName == "")) {
|
||||
if (selVfo != NULL) {
|
||||
int refCenter = mousePos.x - (widgetPos.x + 50);
|
||||
if (refCenter >= 0 && refCenter < dataWidth) {
|
||||
|
@ -175,6 +175,7 @@ namespace ImGui {
|
||||
};
|
||||
|
||||
bool inputHandled = false;
|
||||
bool VFOMoveSingleClick = false;
|
||||
Event<InputHandlerArgs> onInputProcess;
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user