Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions photomap/frontend/static/javascript/umap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,12 +1210,19 @@ function updateLandmarkTrace() {
const y = clustersInView.map((c) => c.center.y + verticalOffset);
const markerColors = clustersInView.map((c) => c.color);

// Triangle-down markers at bottom of thumbnails
// Triangle-down markers at bottom of thumbnails.
// Rendered with scattergl (WebGL) to match the main point traces. The main
// points use scattergl, so an SVG `scatter` trace here was the only visible
// element on the SVG layer. During a touch pan, Plotly translates the SVG
// layer immediately but only repaints the WebGL scene once the gesture
// settles, so on tablets a touch-and-immediately-drag made the triangles
// slide alone while the dots stayed frozen. Keeping the triangles in the
// same WebGL pipeline makes them freeze-and-snap together with the points.
const landmarkTrace = {
x,
y,
mode: "markers",
type: "scatter",
type: "scattergl",
marker: {
size: triangleSize,
color: markerColors,
Expand Down
Loading