Coder Social home page Coder Social logo

skyline-canvas-issue's Introduction

How to run

npm install

npm run serve

问题表现:

  • iOS + Skyline: Canvas 在页面初次挂载时启动渲染,有很大几率崩溃。(若加 1s setTimeout 延迟则不会崩溃)
  • iOS + Webview: Canvas 渲染正常
  • Android + Skyline: Canvas 渲染正常
  • Android + Webview: Canvas 渲染正常

目前临时解决方法:

onReady() {
  setTimeout(() => {
    renderCanvas()
  }, 1000) // 加延迟等待 Canvas 完全初始化后再执行渲染逻辑
}

正常表现(Canvas Webview iOS):

2594_1718190782.mp4

异常表现(Canvas Skyline iOS):

2595_1718190795.mp4

报错信息: image image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.