Skip to content

button.mousePressed() broken? #3141

@Creechie

Description

@Creechie

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Most appropriate sub-area of p5.js?

  • Color
  • Core/Environment/Rendering
  • Data
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)

Which platform were you using when you encountered this?

  • Mobile/Tablet (touch devices)
  • Desktop/Laptop
  • Others (specify if possible)

Details about the bug:

  • p5.js version: p5.js v0.7.1 August 10, 2018
  • Web browser and version: Chrome 68.0.3440.106 (Official Build) (64-bit)
  • Operating System: Windows 10
  • Steps to reproduce this:
    Getting the error "Uncaught TypeError: Cannot read property '_setProperty' of undefined at g.Element.<anonymous> (p5.min.js:7)" when using the button.mousePressed(); function.
    This also seems to be happening in the p5 example linked below:
    https://p5js.org/examples/dom-input-and-button.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions