ZhenZY opened a new issue #2785: [Android][Dev-tool] Dynamic styles cannot render properly on the label that binds the touch event URL: https://github.com/apache/incubator-weex/issues/2785 <!-- Thanks for using Weex. Github Issue is only used for bur report and please follow the template to report the bug. A good bug report should include the following information: --> <!-- Requirements: please go through this checklist before opening a new issue - * Review the documentation: https://weex.apache.org/index.html - * Search for existing issues: https://github.com/apache/incubator-weex/issues - * Use the latest Weex release: https://github.com/apache/incubator-weex/releases --> ## Describe the bug ``` <image style="position: absolute" :style="{width: imgWidth + 'px', height: imgHeight + 'px'}" :src="curImgPath" ref="box" class="box" @touchstart="handleStart" @touchend="handleEnd" @touchmove="handleMove" @load="onImageLoad"> ``` ``` handleStart (e) { this.touchCount++; if (this.touchCount % 2 !== 0) { this.touchStartTime = e.timestamp; } }, handleEnd (e) { if (this.secondTouchEndTime === 0) { this.secondTouchEndTime = e.timestamp; } else { if (e.timestamp - this.touchStartTime < 1000) { this.imgWidth = this.imgWidth * 2; this.imgHeight = this.imgHeight * 2; } this.secondTouchEndTime = 0; } console.log(this.secondTouchEndTime, '|', e.timestamp, '|', this.firstTouchStartTime, '|', e.timestamp - this.touchStartTime) }, ``` ## To Reproduce Double click on the image to get the video effect ## Environment On any android device ## Expected behavior One double click changes the image size only once. ## Screenshots [The actual rendering](https://www.yuque.com/docs/share/7530feac-b028-407d-9b10-0c1047877483)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
