update 0.12.3

This commit is contained in:
hufeixiong
2022-02-10 17:28:41 +08:00
parent f55717f7bd
commit 012b578519
7 changed files with 15 additions and 5 deletions

View File

@@ -5,6 +5,8 @@ nav:
title: change log
order: 6
---
## 0.12.3
Fix double click positioning problem
## 0.12.2
Add double click positioning frame.
Fixed drag frame reset pointer behavior after pause.

View File

@@ -5,6 +5,10 @@ nav:
title: 变更日志
order: 6
---
## 0.12.3
修复双击定位问题
## 0.12.2
新增双击定位帧。

View File

@@ -1,5 +1,5 @@
{
"version": "0.12.2",
"version": "0.12.3",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/dooringx-lib.esm.js",

View File

@@ -258,8 +258,8 @@ const needleDoubleClick = (config: UserConfig) => {
const dom = config.timelineConfig.scrollDom;
if (dom) {
const setNeedle = config.timelineNeedleConfig.setNeedle;
const left = dom.getBoundingClientRect().left + dom.scrollLeft;
const mouseLeft = e.clientX;
const left = dom.getBoundingClientRect().left;
const mouseLeft = e.clientX + dom.scrollLeft;
e.persist();
e.stopPropagation();
await config.timelineNeedleConfig.resetFunc();

View File

@@ -1,6 +1,6 @@
{
"name": "dooringx-plugin-template",
"version": "0.12.2",
"version": "0.12.3",
"description": "> TODO: description",
"author": "yehuozhili <673632758@qq.com>",
"homepage": "https://github.com/H5-Dooring/dooringx#readme",

View File

@@ -40,7 +40,7 @@
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-url": "^6.1.0",
"@svgr/rollup": "^5.5.0",
"dooringx-lib": "^0.12.2",
"dooringx-lib": "^0.12.3",
"postcss": "^8.3.6",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.1",