diff --git a/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx b/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx index e77160a..90fd172 100644 --- a/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx +++ b/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx @@ -10,16 +10,16 @@ export default function ChatHeader(props) {
{ - if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan' || e.target.id=='chatHeaderAvatar'){ - mouseOverHandle(e,props.chatUI) - } - }} - onMouseMove={(e)=>{ - if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan'|| e.target.id=='chatHeaderAvatar'){ - mouseMoveHandle(e,props.chatUI) - } - }} + // onMouseOver={(e)=>{ + // if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan' || e.target.id=='chatHeaderAvatar'){ + // mouseOverHandle(e,props.chatUI) + // } + // }} + // onMouseMove={(e)=>{ + // if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan'|| e.target.id=='chatHeaderAvatar'){ + // mouseMoveHandle(e,props.chatUI) + // } + // }} onMouseDown={(e)=>{ if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan'|| e.target.id=='chatHeaderAvatar'){ mouseDrag(e,150,props.chatUI,null,null) diff --git a/src/pages/customerservice/support/conversation/utils/utils.jsx b/src/pages/customerservice/support/conversation/utils/utils.jsx index 6ec7741..5d0cf76 100644 --- a/src/pages/customerservice/support/conversation/utils/utils.jsx +++ b/src/pages/customerservice/support/conversation/utils/utils.jsx @@ -133,12 +133,12 @@ export function mouseOverHandle(e,chatUI){ direction = 'top'; } - if(clickBox.id=="chatHeader" ){ - e=e||event; //兼容ie和其他浏览器的写法 - if ((mouseDownY > clickBoxTop && mouseDownY < clickBoxBottom) || (mouseDownX > clickBoxLeft && mouseDownX < clickBoxRight)){ - direction = 'move'; - } - } + // if(clickBox.id=="chatHeader" ){ + // e=e||event; //兼容ie和其他浏览器的写法 + // if ((mouseDownY > clickBoxTop && mouseDownY < clickBoxBottom) || (mouseDownX > clickBoxLeft && mouseDownX < clickBoxRight)){ + // direction = 'move'; + // } + // } if(direction!=0){ if(direction=="left" || direction=="right"){ @@ -148,8 +148,6 @@ export function mouseOverHandle(e,chatUI){ }else{ clickBox.style.cursor="auto" } - }else if(direction == "move"){ - clickBox.style.cursor="auto" }else{ clickBox.style.cursor="auto" } @@ -175,20 +173,18 @@ export function mouseMoveHandle(e,chatUI){ direction = 'top'; } } - if(clickBox.id=="chatHeader" ){ - e=e||event; //兼容ie和其他浏览器的写法 - if ((mouseDownY > clickBoxTop && mouseDownY < clickBoxBottom) || (mouseDownX > clickBoxLeft && mouseDownX < clickBoxRight)){ - direction = 'move'; - } - } + // if(clickBox.id=="chatHeader" ){ + // e=e||event; //兼容ie和其他浏览器的写法 + // if ((mouseDownY > clickBoxTop && mouseDownY < clickBoxBottom) || (mouseDownX > clickBoxLeft && mouseDownX < clickBoxRight)){ + // direction = 'move'; + // } + // } if(direction!=0){ if(direction=="left" || direction=="right"){ clickBox.style.cursor='w-resize' }else if(direction=="top" || direction=="bottom"){ clickBox.style.cursor='s-resize' - }else if(direction == "move"){ - clickBox.style.cursor="auto" }else { clickBox.style.cursor="auto" }