Browse Source

Add back pointer events example

main
Andrew Clark 7 years ago
parent
commit
30be0d05fa
  1. 2
      content/blog/2018-05-23-react-v-16-4.md
  2. 2
      examples/16-4-release-blog-post/pointer-events-example.js

2
content/blog/2018-05-23-react-v-16-4.md

@ -24,6 +24,8 @@ The following event types are now available in React DOM:
Please note that these events will only work in browsers that support the Pointer Events specification. (At the time of this writing, this includes the latest versions of Chrome, Firefox, Edge, and Internet Explorer.) If your application depends on pointer events, we recommend using a third-party pointer events polyfill. We have opted not to include such a polyfill in React DOM, to avoid an increase in bundle size. Please note that these events will only work in browsers that support the Pointer Events specification. (At the time of this writing, this includes the latest versions of Chrome, Firefox, Edge, and Internet Explorer.) If your application depends on pointer events, we recommend using a third-party pointer events polyfill. We have opted not to include such a polyfill in React DOM, to avoid an increase in bundle size.
[Check out this example on CodeSandbox.](codesandbox://16-4-release-blog-post/pointer-events-example)
Huge thanks to [Philip Spiess](https://github.com/philipp-spiess) for contributing this change! Huge thanks to [Philip Spiess](https://github.com/philipp-spiess) for contributing this change!
## Bugfix for `getDerivedStateFromProps` ## Bugfix for `getDerivedStateFromProps`

2
examples/16-4-release-blog-post/pointer-events-example.js

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
const CIRCLE_SIZE = 80; const CIRCLE_SIZE = 85;
class DragBox extends React.Component { class DragBox extends React.Component {
state = { state = {

Loading…
Cancel
Save