Changeset 248117 in webkit


Ignore:
Timestamp:
Aug 1, 2019 12:43:02 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

results.webkit.org: Collision detection for dots is off by 2 * dotMargin
https://bugs.webkit.org/show_bug.cgi?id=200347

Patch by Zhifei Fang <zhifei_fang@apple.com> on 2019-08-01
Reviewed by Jonathan Bedard.

  • resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:

(Timeline.CanvasSeriesComponent): Need to change it to dotMargin + radius other than use a fixed 3 * radius, which is for the old wide timeline

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r248116 r248117  
     12019-08-01  Zhifei Fang  <zhifei_fang@apple.com>
     2
     3        results.webkit.org: Collision detection for dots is off by 2 * dotMargin
     4        https://bugs.webkit.org/show_bug.cgi?id=200347
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:
     9        (Timeline.CanvasSeriesComponent): Need to change it to dotMargin + radius other than use a fixed 3 * radius, which is for the old wide timeline
     10
    1112019-08-01  Jiewen Tan  <jiewen_tan@apple.com>
    212
  • trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js

    r248076 r248117  
    323323            if (currentDotIndex < dots.length && comp(scales[i], getScale(dots[currentDotIndex])) === 0) {
    324324                render(dots[currentDotIndex], context, x, radius);
    325                 dots[currentDotIndex]._dotCenter = {x: x + 3 * radius, y: radius};
     325                dots[currentDotIndex]._dotCenter = {x: x + dotMargin + radius, y: radius};
    326326                dots[currentDotIndex]._cachedScrollLeft = scrollLeft < padding ? scrollLeft : scrollLeft - padding;
    327327                inCacheDots.push(dots[currentDotIndex]);
Note: See TracChangeset for help on using the changeset viewer.