doway-coms 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -46,8 +46,8 @@ function getDomNode () {
46
46
  return {
47
47
  scrollTop: documentElement.scrollTop || bodyElem.scrollTop,
48
48
  scrollLeft: documentElement.scrollLeft || bodyElem.scrollLeft,
49
- visibleHeight: documentElement.clientHeight || bodyElem.clientHeight,
50
- visibleWidth: documentElement.clientWidth || bodyElem.clientWidth
49
+ visibleHeight: documentElement.clientHeight + 80 || bodyElem.clientHeight + 80,
50
+ visibleWidth: documentElement.clientWidth + 80 || bodyElem.clientWidth + 80
51
51
  }
52
52
  }
53
53
 
@@ -115,9 +115,9 @@ export const DomTools = {
115
115
  getEventTargetNode (evnt, container, queryCls, queryMethod) {
116
116
  let targetElem
117
117
  let target =
118
- evnt.target.shadowRoot && evnt.composed
119
- ? evnt.composedPath()[0] || evnt.target
120
- : evnt.target
118
+ evnt.target.shadowRoot && evnt.composed
119
+ ? evnt.composedPath()[0] || evnt.target
120
+ : evnt.target
121
121
  while (target && target.nodeType && target !== document) {
122
122
  if (queryCls && hasClass(target, queryCls) && (!queryMethod || queryMethod(target))) {
123
123
  targetElem = target