Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse position tracking incorrect when track orientation is vertical #861

Closed
etowahadams opened this issue Apr 3, 2023 · 1 comment
Closed
Labels
bug🐛 Something isn't working v2 Issues related to Gosling v2

Comments

@etowahadams
Copy link
Contributor

When the track orientation is vertical, the mouse position indicator is incorrect; it does not track the position of the mouse.

To reproduce:

{
  "orientation": "vertical",
  "tracks": [
    {
      "id": "1-1",
      "title": "Sample 1",
      "data": {
        "url": "https://resgen.io/api/v1/tileset_info/?d=Zz3CBDSqQ3ySrOSe2yj1eg",
        "type": "vector",
        "column": "position",
        "value": "peak",
        "binSize": 4
      },
      "mark": "bar",
      "x": {
        "field": "start",
        "type": "genomic",
        "axis": "bottom",
        "linkingId": "1"
      },
      "xe": {"field": "end", "type": "genomic"},
      "y": {
        "field": "peak",
        "type": "quantitative",
        "axis": "left",
        "flip": false
      },
      "color": {"value": "#CC7DAA"},
      "stroke": {"value": "white"},
      "strokeWidth": {"value": 0.2},
      "style": {"background": "lightgray", "backgroundOpacity": 0},
      "width": 700,
      "height": 400
    }
  ]
}
Screen.Recording.2023-04-03.at.5.34.04.PM.mov

The “showMousePosition” and “mousePositionColor” options in gosling-theme.
https://github.com/gosling-lang/gosling-theme/blob/d438f77ed244eb04a4982891729b572d61285a5a/src/dark.ts#L22

From @sehilyi

The mouse positions are implemented in HiGlass, and we are using HiGlass’ track option (showMousePosition) to show the line in Gosling tracks. Unsure why it is not shown correctly.
FYI, showMousePosition in HiGlass: https://docs.higlass.io/view_config.html

@etowahadams etowahadams added the bug🐛 Something isn't working label Apr 3, 2023
@sehilyi sehilyi added the v2 Issues related to Gosling v2 label Mar 7, 2025
@sehilyi
Copy link
Member

sehilyi commented Mar 7, 2025

This can be revisited after we work on removing HiGlass dependencies (#1113). Closing this for now.

@sehilyi sehilyi closed this as completed Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug🐛 Something isn't working v2 Issues related to Gosling v2
Projects
None yet
Development

No branches or pull requests

2 participants