diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-20 15:58:22 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-20 16:14:16 +0800 |
commit | e1996ae9067555c4b774c8de800d1b4d647c4085 (patch) | |
tree | 9f753d0002f8cc73b728915130ef871a97762ef5 /rollup.config.js | |
parent | b3cabd0868db0b90b98e6ee6bb80943e0f4ede4d (diff) |
feat: enable onscroll event from plain-draggable
ref: https://github.com/anseki/plain-draggable/issues/148
* put CSS properties resize and overflow-y to content of draggable item
* refine CSS for handle animation
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rollup.config.js b/rollup.config.js index 78a4123..d04eb4e 100644 --- a/rollup.config.js +++ b/rollup.config.js | |||
@@ -29,16 +29,6 @@ const general = { | |||
29 | }, | 29 | }, |
30 | }, | 30 | }, |
31 | { | 31 | { |
32 | name: 'plain-draggable', | ||
33 | transform(code, id) { | ||
34 | if (id.includes('node_modules/plain-draggable/')) { | ||
35 | const removePattern = /window\.addEventListener\('scroll'[^\)]*\)/ | ||
36 | return `${code.replace(removePattern, "")}`; | ||
37 | } | ||
38 | return null; | ||
39 | }, | ||
40 | }, | ||
41 | { | ||
42 | name: 'mapclay', | 32 | name: 'mapclay', |
43 | resolveId(source) { | 33 | resolveId(source) { |
44 | if (source === 'mapclay' && existsSync(join('.', 'mapclay'))) { | 34 | if (source === 'mapclay' && existsSync(join('.', 'mapclay'))) { |