From 0c06ffb157551a8afd3f08118b0426403c2e03f7 Mon Sep 17 00:00:00 2001 From: Ovilia Date: Thu, 25 Jan 2024 19:14:12 +0800 Subject: [PATCH] fix: silent should not be depend on ignoreClip --- .travis.yml | 12 ------------ README.md | 2 +- src/Handler.ts | 6 +++--- 3 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 76a3607d5..000000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js - -node_js: - - "node" - -branches: - only: - - next - -script: - - npm i - - npm run build diff --git a/README.md b/README.md index da64b2363..09e9441bd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ZRender A lightweight graphic library which provides 2d draw for [Apache ECharts](https://github.com/apache/echarts). -[![Build Status](https://travis-ci.com/ecomfe/zrender.svg?branch=master)](https://travis-ci.com/ecomfe/zrender) [![](https://img.shields.io/npm/dw/zrender.svg?label=npm%20downloads&style=flat)](https://www.npmjs.com/package/zrender) ![Commits Since 4.0.0](https://img.shields.io/github/commits-since/ecomfe/zrender/4.0.0.svg?colorB=%234c1&style=flat) +[![](https://img.shields.io/github/actions/workflow/status/ecomfe/zrender/ci.yml)]() [![](https://img.shields.io/npm/dw/zrender.svg?label=npm%20downloads&style=flat)](https://www.npmjs.com/package/zrender) ![Commits Since 4.0.0](https://img.shields.io/github/commits-since/ecomfe/zrender/4.0.0.svg?colorB=%234c1&style=flat) ## Documentation diff --git a/src/Handler.ts b/src/Handler.ts index ec94af048..bf224a98d 100644 --- a/src/Handler.ts +++ b/src/Handler.ts @@ -497,9 +497,9 @@ function isHover(displayable: Displayable, x: number, y: number) { if (clipPath && !clipPath.contain(x, y)) { return false; } - if (el.silent) { - isSilent = true; - } + } + if (el.silent) { + isSilent = true; } // Consider when el is textContent, also need to be silent // if any of its host el and its ancestors is silent.