@@ -527,8 +527,8 @@ void processInputEvents() {
527527 dragDistSinceLastRelease = 0.0 ;
528528 }
529529
530- // Ctrl-shift left-click to set new center
531- if (ctrlShiftHeld && io.MouseReleased [0 ]) {
530+ // Double-click or Ctrl-shift left-click to set new center
531+ if (io. MouseDoubleClicked [ 0 ] || ( ctrlShiftHeld && io.MouseReleased [0 ]) ) {
532532 if (dragDistSinceLastRelease < dragIgnoreThreshold) {
533533 glm::vec2 screenCoords{io.MousePos .x , io.MousePos .y };
534534 view::processSetCenter (screenCoords);
@@ -748,14 +748,14 @@ void buildPolyscopeGui() {
748748 // clang-format off
749749 ImGui::Begin (" Controls" , NULL , ImGuiWindowFlags_NoTitleBar);
750750 ImGui::TextUnformatted (" View Navigation:" );
751- ImGui::TextUnformatted (" Rotate: [left click drag]" );
752- ImGui::TextUnformatted (" Translate: [shift] + [left click drag] OR [right click drag]" );
753- ImGui::TextUnformatted (" Zoom: [scroll] OR [ctrl/cmd] + [shift] + [left click drag]" );
754- ImGui::TextUnformatted (" Use [ctrl/cmd-c] and [ctrl/cmd-v] to save and restore camera poses " );
755- ImGui::TextUnformatted (" via the clipboard ." );
756- ImGui::TextUnformatted (" Hold [ctrl/cmd] + [shift] and [left click] in the scene to set the " );
757- ImGui::TextUnformatted (" orbit center. " );
758- ImGui::TextUnformatted (" Hold [ctrl/cmd] + [shift] and scroll to zoom towards the center ." );
751+ ImGui::TextUnformatted (" Rotate: [left click drag]" );
752+ ImGui::TextUnformatted (" Translate: [shift] + [left click drag] OR [right click drag]" );
753+ ImGui::TextUnformatted (" Zoom: [scroll] OR [ctrl/cmd] + [shift] + [left click drag]" );
754+ ImGui::TextUnformatted (" To set the view orbit center, double-click OR hold " );
755+ ImGui::TextUnformatted (" [ctrl/cmd] + [shift] and [left click] in the scene ." );
756+ ImGui::TextUnformatted (" To zoom towards the center, hold [ctrl/cmd] + [shift] and scroll. " );
757+ ImGui::TextUnformatted (" Save and restore camera poses via the system clipboard with " );
758+ ImGui::TextUnformatted (" [ctrl/cmd-c] and [ctrl/cmd-v] ." );
759759 ImGui::TextUnformatted (" \n Menu Navigation:" );
760760 ImGui::TextUnformatted (" Menu headers with a '>' can be clicked to collapse and expand." );
761761 ImGui::TextUnformatted (" Use [ctrl/cmd] + [left click] to manually enter any numeric value" );
0 commit comments