Skip to content

Commit

Permalink
Bugfix for production
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanzwicknagl committed Oct 23, 2024
1 parent 130c9a5 commit d7ec449
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ viASP allows you to explore the visualization in a variety of ways:
* Inspect iterations of recursive rules
* Visualize unsatisfiable programs
* Move rules to follow a preferred order
* Zoom in and out of parts of the graph
* Zoom in and out of parts of the graph (press `Shift` and scroll)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion backend/src/viasp/shared/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

DEFAULT_BACKEND_PROTOCOL = "http"
DEFAULT_BACKEND_HOST = "localhost"
DEFAULT_BACKEND_HOST = "127.0.0.1"
DEFAULT_BACKEND_PORT = 5050
DEFAULT_FRONTEND_PORT = 8050
DEFAULT_BACKEND_URL = f"{DEFAULT_BACKEND_PROTOCOL}://{DEFAULT_BACKEND_HOST}:{DEFAULT_BACKEND_PORT}"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lib/constants/animation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getDetailOpenWidthRatio } from "../components/Detail.react";
export const DEBOUNCETIMEOUT = 150;
export const ZOOMTOGGLEBUTTON = 'Shift'
export const SMALLERDEBOUNCETIMEOUT = 50;
export const detailClosedShiftThreshold = 0.2;
export const detailOpenShiftThreshold = 0.05;
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/lib/main/ViaspDash.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,14 @@ function MainWindow(props) {

React.useEffect(() => {
const handleKeyDown = (event) => {
if (event.key === 'Control') {
console.log(event.key);
if (event.key === Constants.ZOOMTOGGLEBUTTON) {
setCtrlPressed(true);
}
};

const handleKeyUp = (event) => {
if (event.key === 'Control') {
if (event.key === Constants.ZOOMTOGGLEBUTTON) {
setCtrlPressed(false);
}
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/viasp_dash/viasp_dash.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/viasp_dash/viasp_dash.min.js.map

Large diffs are not rendered by default.

0 comments on commit d7ec449

Please sign in to comment.