Skip to content

Commit

Permalink
Merge pull request #1863 from weather-gov/ik/fix-tooltip-scroll
Browse files Browse the repository at this point in the history
Fix tooltip interaction on mobile scroll
  • Loading branch information
partly-igor authored Oct 7, 2024
2 parents 2736d70 + 4f69792 commit 6b10b9d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ for (const container of chartContainers) {
legend: {
display: false,
},
tooltip: {
events: ['click', 'mousemove'],
},
},
scales: {
x: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ for (const container of chartContainers) {
tooltip: {
xAlign: "center",
yAlign: "bottom",
events: ['click','mousemove'],
},
},
scales: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ for (const container of chartContainers) {
tooltip: {
xAlign: "center",
yAlign: "bottom",
events: ['click','mousemove'],
},
},
scales: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ for (const container of chartContainers) {
legend: {
display: false,
},
tooltip: {
events: ['click', 'mousemove'],
},
},
scales: {
x: {
Expand Down
3 changes: 3 additions & 0 deletions web/themes/new_weather_theme/assets/js/charts/hourly-wind.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ for (const container of chartContainers) {
legend: {
display: false,
},
tooltip: {
events: ['click', 'mousemove'],
},
},
layout: {
padding: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ front-page:
defer: true

point-page:
version: 2024-10-04
version: 2024-10-07
js:
assets/js/point.page.js:
attributes:
Expand Down

0 comments on commit 6b10b9d

Please sign in to comment.