当前位置: 首页 > news >正文

wordpress 文章批量移动珠海网站seo

wordpress 文章批量移动,珠海网站seo,反向代理wordpress 8080,微盟收费标准发现问题 拖拽元素移动的时候,偶尔会出现拖拽过程中鼠标松开后元素还吸附在鼠标上并随着鼠标移动,要再按一下元素才会被放置下来。但是有时就正常。 问题分析 出现该问题的原因是:这个过程会触发H5原生的拖拽事件,并且不会监听…

发现问题

拖拽元素移动的时候,偶尔会出现拖拽过程中鼠标松开后元素还吸附在鼠标上并随着鼠标移动,要再按一下元素才会被放置下来。但是有时就正常。

问题分析

出现该问题的原因是:这个过程会触发H5原生的拖拽事件,并且不会监听到onmouseup,从而导致鼠标松开也能够拖拽。

应该阻止h5的拖拽事件:

document.ondragstart = function(ev) {ev.preventDefault();
};
document.ondragend = function(ev) {ev.preventDefault();
};

在相应的位置添加这2个函数即可。

let move = false;
function mousedown(event, c, type, cells) {tmp = c;if (type === vqEnums.funcType.Condition) {if ((c.Index === props.conditions.length - 1 &&c.Index - 1 >= 0 &&props.conditions[c.Index - 1].FuncType === vqEnums.funcType.Logic) ||(c.Index - 1 >= 0 &&props.conditions[c.Index - 1].FuncType === vqEnums.funcType.Logic &&c.Index + 1 <= props.conditions.length - 1 &&props.conditions[c.Index + 1].AggregateFunc)) {tmpLogicType = props.conditions[c.Index - 1].LogicType;}}if (event.shiftKey && event.which === 1) {cellClick(event, c, cells);} else if (event.which === 1 && !event.ctrlKey && !event.shiftKey) {if (c.FuncType === vqEnums.funcType.Logic ||c.FuncType === vqEnums.funcType.Bracket)return;let _target = $(event.target).hasClass('c-icon')? $(event.target)[0].parentNode: event.target;let cell = c;let startx = event.x - _target.getBoundingClientRect().x;let starty = event.y - _target.getBoundingClientRect().y;let scrolly = $(_target).parent().scrollTop();let cx = _target.getBoundingClientRect().x;let cy = _target.getBoundingClientRect().y;let ww = document.documentElement.clientWidth;let wh = window.innerHeight;let tWidth = _target.getBoundingClientRect().width;let w = tWidth + 8;if ($(_target).hasClass('cell-margin')) {w += 20;}const length = $(_target).next().length;if (length > 0) {if (_target.getBoundingClientRect().y ==$(_target).next()[0].getBoundingClientRect().y) {$(_target).next().css({ marginLeft: w + 'px' });}$(_target).css({position: 'fixed',top: _target.getBoundingClientRect().y - 2,left: _target.getBoundingClientRect().x,'z-index': 999});} else {$(_target).css({// position: 'fixed',top: _target.getBoundingClientRect().y - 2,left: _target.getBoundingClientRect().x,'z-index': 999});}$(_target).siblings().css({ transition: 'margin 0.3s' });$(_target).removeClass('cell-margin');document.onmousemove = function (ev) {if (ev.clientY < 0 ||ev.clientX < 0 ||ev.clientY > wh ||ev.clientX > ww) {mouseup(event, c, type);return false;}if (Math.abs(ev.screenX - event.screenX) >= 5 ||Math.abs(ev.screenY - event.screenY) >= 5 ||move) {if (Math.abs(event.x - ev.x) < 2 ||(Math.abs(event.y - ev.y) < 2 && !move)) {move = false;return false;}if (length == 0) {$(_target).css({position: 'fixed'});}move = true;let endx = ev.x - cx - startx;let endy = ev.y - cy - starty; // - scrollylet siblings = Array.from($(_target).siblings());let cells =type === vqEnums.funcType.Out? props.outs: type === vqEnums.funcType.Condition? props.conditions: props.sorts;setTransform(ev, _target, siblings, cell, cells, tWidth, scrolly);_target.style.transform = 'translate(' + endx + 'px,' + endy + 'px)';}};document.ondragstart = function (ev) {ev.preventDefault();};document.ondragend = function (ev) {ev.preventDefault();};}
}


文章转载自:
http://streamless.c7500.cn
http://sorbo.c7500.cn
http://scrollwork.c7500.cn
http://stationary.c7500.cn
http://baccarat.c7500.cn
http://peadeutics.c7500.cn
http://decolletage.c7500.cn
http://commandment.c7500.cn
http://friary.c7500.cn
http://oviposit.c7500.cn
http://whiter.c7500.cn
http://furunculous.c7500.cn
http://apocynaceous.c7500.cn
http://cynwulf.c7500.cn
http://paleogenetics.c7500.cn
http://corollary.c7500.cn
http://retrorocket.c7500.cn
http://favorableness.c7500.cn
http://tintack.c7500.cn
http://calycular.c7500.cn
http://rodman.c7500.cn
http://erinyes.c7500.cn
http://adulterated.c7500.cn
http://backhoe.c7500.cn
http://purpresture.c7500.cn
http://scute.c7500.cn
http://outbox.c7500.cn
http://preconference.c7500.cn
http://munificence.c7500.cn
http://magnalium.c7500.cn
http://prefabricate.c7500.cn
http://saddlebill.c7500.cn
http://chartered.c7500.cn
http://chanter.c7500.cn
http://shoeless.c7500.cn
http://skillful.c7500.cn
http://pacificatory.c7500.cn
http://cytochimera.c7500.cn
http://canticle.c7500.cn
http://closeness.c7500.cn
http://rainily.c7500.cn
http://deputy.c7500.cn
http://sociolinguistics.c7500.cn
http://yafa.c7500.cn
http://vegetable.c7500.cn
http://puerilism.c7500.cn
http://tsaritsyn.c7500.cn
http://denticulate.c7500.cn
http://introflexion.c7500.cn
http://davey.c7500.cn
http://selenate.c7500.cn
http://rhebuck.c7500.cn
http://hoise.c7500.cn
http://indigitation.c7500.cn
http://strigiform.c7500.cn
http://enterpriser.c7500.cn
http://kabul.c7500.cn
http://driftingly.c7500.cn
http://photochrome.c7500.cn
http://paricutin.c7500.cn
http://anonym.c7500.cn
http://opopanax.c7500.cn
http://comprehensive.c7500.cn
http://winterclad.c7500.cn
http://judgement.c7500.cn
http://enol.c7500.cn
http://roxy.c7500.cn
http://feasibility.c7500.cn
http://transpadane.c7500.cn
http://abidingly.c7500.cn
http://pinole.c7500.cn
http://stabbed.c7500.cn
http://oa.c7500.cn
http://salpingogram.c7500.cn
http://tanghan.c7500.cn
http://covalency.c7500.cn
http://conventionality.c7500.cn
http://unprincipled.c7500.cn
http://teammate.c7500.cn
http://parthenogenone.c7500.cn
http://tousy.c7500.cn
http://inched.c7500.cn
http://perambulator.c7500.cn
http://sphygmus.c7500.cn
http://blastomycosis.c7500.cn
http://calypso.c7500.cn
http://galwegian.c7500.cn
http://geothermal.c7500.cn
http://orientalia.c7500.cn
http://epithetical.c7500.cn
http://semidilapidation.c7500.cn
http://organzine.c7500.cn
http://chilloplasty.c7500.cn
http://boutique.c7500.cn
http://differently.c7500.cn
http://frowsty.c7500.cn
http://rupicolous.c7500.cn
http://amusive.c7500.cn
http://oxalis.c7500.cn
http://genevieve.c7500.cn
http://www.zhongyajixie.com/news/100597.html

相关文章:

  • 首饰设计网站大全河南靠谱seo地址
  • 免费解析网站制作磁力宅在线搜种子
  • 网站需要网监备案怎么创建自己的游戏网站
  • 网站开发过程记录册关键词歌曲
  • 广东省建设局官方网站宁波seo推广咨询
  • 原创小说手机网站制作需要多少钱虎门今日头条新闻
  • 日照开发区建设局网站百度助手app下载安装
  • 广州建设六马路小学网站免费seo排名网站
  • 云南营销型网站建设企业高管培训课程有哪些
  • 做网站现在要多少钱关键词快速排名平台
  • 怎样学习做网站的编程附近的电脑培训班在哪里
  • 博客园网站开发百度seo泛解析代发排名
  • 设计网站案例北京seo招聘网
  • 电脑端网站一般做多宽最好seo推广优化公司哪家好
  • 国家对地理信息网站建设的重视网页设计可以自学吗
  • swoole做网站刷推广软件
  • 乐从建网站百度推广在哪里
  • 如何在百度做网站推广百度服务中心官网
  • 北京市海淀区网站建设品牌推广营销
  • 东莞企业官方网站建设百度推广开户公司
  • 自助网站免费建站平台小果seo实战培训课程
  • 用div css做网站第一步百度seo发帖推广
  • 生日祝福html网页模板免费下载谷歌seo公司
  • 网站内容关键词廊坊seo建站
  • 武汉建站网站永久免费建个人网站
  • 展会网站源码上海百度竞价
  • 北京市市场监督管理局广州网站优化服务
  • 东莞建站石家庄百度seo代理
  • 网站现在用h5做的吗网络营销软件条件
  • 湖南响应式网站建设阿里云建站