Browse Source

bug #1792: Fixed an issue that caused item tooltips to be in 'compare mode' on mobile

(cherry picked from commit fdb99ee8dd)
tags/v0.9.1.3
Shaun 2 years ago
committed by Big Bad Waffle
parent
commit
574584cc4b
2 changed files with 5 additions and 4 deletions
  1. +3
    -3
      src/client/ui/templates/tooltipItem/buildTooltip/lineBuilders.js
  2. +2
    -1
      src/client/ui/templates/tooltipItem/tooltipItem.js

+ 3
- 3
src/client/ui/templates/tooltipItem/buildTooltip/lineBuilders.js View File

@@ -341,10 +341,10 @@ define([

let text = null;

if (!shiftDown && compare)
text = '[shift] to compare';
else if (isMobile && compare && !shiftDown)
if (isMobile && compare && !shiftDown)
text = 'tap again to compare';
else if (!shiftDown && compare)
text = '[shift] to compare';

if (!text)
return null;


+ 2
- 1
src/client/ui/templates/tooltipItem/tooltipItem.js View File

@@ -31,11 +31,12 @@ define([
},

onShowItemTooltip: function (item, pos, canCompare, bottomAlign) {
this.item = item;
this.removeButton();

const html = buildTooltip(this, item, pos, canCompare, bottomAlign);

this.item = item;

const el = this.tooltip;
el.html(html);
el.css({ display: 'flex' });


Loading…
Cancel
Save