Commit Graph

310 Commits (5134bbb593b0744c247a8479aa234523ab69ee5d)

Author SHA1 Message Date
Thibault Duplessis a5d449d4d6 change study icon 2017-10-06 18:32:48 -05:00
Thibault Duplessis b16dd025bd upgrade UI vendors to allow arrows in embedded analysis - closes #3572 2017-09-09 12:32:17 -05:00
Thibault Duplessis fa72a8dce3 upgrade chessground 2017-08-20 07:26:28 -05:00
Thibault Duplessis 15c0ef5f97 upgrade chessground 2017-08-16 20:30:42 -05:00
Thibault Duplessis 8967820085 upgrade chessground 2017-08-16 16:57:57 -05:00
Thibault Duplessis 4472fe0567 upgrade chessground 2017-08-16 10:44:29 -05:00
Thibault Duplessis d151137422 improve ui vendors - closes #3423 2017-08-10 11:05:23 -05:00
Niklas Fiekas 4507a06b72 translate board editor dropdown (#3382) 2017-07-29 19:58:12 +02:00
Thibault Duplessis f953d2c7c4 upgrade chessground 2017-07-29 13:08:09 +02:00
Thibault Duplessis 7e4e089f6e upgrade chessground 2017-07-29 12:49:24 +02:00
Thibault Duplessis 2fbc666ace upgrade chessground 2017-07-28 19:58:29 +02:00
Thibault Duplessis 94603d1a38 upgrade ui vendors, including chessground -> v7.0.1 2017-07-28 19:11:12 +02:00
Thibault Duplessis 98c2807af0 fix ui/editor 2017-07-18 14:37:03 +02:00
Thibault Duplessis 0054d5acaf remove JS lichess.partial 2017-07-17 11:15:11 +02:00
Niklas Fiekas 44a465649c tweak board editor to make castling fit box 2017-07-15 22:34:11 +02:00
Thibault Duplessis 1bd87d5bf5 yarn upgrade 2017-07-09 10:49:52 +02:00
Thibault Duplessis 0e8c0136a0 upgrade all UI modules dependencies, including chessground 2017-07-06 12:44:59 +02:00
Thibault Duplessis da7deb51a9 upgrade chessground & snabbdom in all modules 2017-07-04 12:00:08 +02:00
Niklas Fiekas 357493984c avoid using e.which in board editor (fixes #3135) 2017-06-25 14:07:07 +02:00
Niklas Fiekas 62018b9d62 update lock files 2017-05-20 12:13:07 +02:00
Niklas Fiekas 2c96a5409b switch from npm to yarn 2017-05-19 15:38:44 +02:00
Thibault Duplessis 1916c99353 trailing space 2017-05-07 10:34:20 +02:00
Thibault Duplessis 8d34456e05 fix safari bug on board editor 2017-05-06 13:54:27 +02:00
Thibault Duplessis ec18525e49 create new study chapter from board editor - closes #2932 2017-04-14 13:21:48 +02:00
Thibault Duplessis 910e13e585 add position validity check in ui/editor 2017-04-14 12:45:17 +02:00
Niklas Fiekas 0c47bd7abc only catch errors in watch mode 2017-04-08 01:50:14 +02:00
Brandon Evans 85d5dccbbf Prevent screen scroll when dragging a piece. 2017-03-20 11:57:09 -05:00
Brandon Evans 339d2bc41f Simplified end event listener. 2017-03-18 07:52:10 -05:00
Brandon Evans 184dc5d0ba Actually, I think it’s better if you can’t paint pieces at all if you just placed a piece to delete a piece. 2017-03-17 15:54:05 -05:00
Brandon Evans 3b6ec397e6 If you have a piece selected and click or touch that same piece, you will now not be able to restore the piece by painting over it again. There was no good way to allow this with touches, so this makes the behavior consistent. Also, simplified logic. 2017-03-17 15:42:25 -05:00
Brandon Evans a081bba08d Get around an issue with touchmove events failing to fire if you remove the element the touch starts on. When you touch the piece you want to remove, it will be hidden and only actually get deleted when you end the touch. All other pieces deleted during this touch will be deleted normally. 2017-03-17 15:10:48 -05:00
Brandon Evans 94fefb254b Only call onChange when the pieces have actually changed. 2017-03-17 12:16:22 -05:00
Brandon Evans 581e0621e9 Simplified getting the last touch move position. 2017-03-17 10:51:05 -05:00
Brandon Evans fd608aece1 Track the last touch move position and use that when the event position is undefined. This is sometimes necessary for touch end events. 2017-03-17 09:53:04 -05:00
Brandon Evans f6531a2de9 Merge branch 'master' into bugfix/board-editor-mobile
# Conflicts:
#	ui/editor/src/view.js
2017-03-17 08:02:06 -05:00
Brandon Evans ce1631a211 Fixed board editor for touch screens. 2017-03-16 11:09:53 -05:00
Thibault Duplessis 50db50a8fe Merge pull request #2794 from BrandonE/improvement/select-pointer-after-dragging
Select the pointer after dragging a piece onto the board. If you drag…
2017-03-16 09:54:42 +01:00
Brandon Evans f365c86aab Delete pieces when dropped off board in the editor. 2017-03-15 10:48:29 -05:00
Brandon Evans 8c6dcfd150 Include the event position function from chess ground instead of copying it here. 2017-03-15 10:18:04 -05:00
Brandon Evans 8ca741b44e Select the pointer after dragging a piece onto the board. If you drag the piece anywhere else (or simply let go immediately), the piece will be selected. 2017-03-14 18:17:43 -05:00
Thibault Duplessis 437794f1d2 Merge remote-tracking branch 'BrandonE/improvement/delete-selected-piece-on-click'
* BrandonE/improvement/delete-selected-piece-on-click:
  Don’t create pieces when hovering over a square with the left mouse button. Significantly reduces the number of setPieces calls that are made and prevents pieces from being recreated after deleting them with a left click if you hold down the mouse button and move around the square.
  Read the current piece from the selected square without modifying chessground.
  If you click on a piece on the board that is the same type as the selected piece, remove it.
2017-03-09 11:15:11 +01:00
Thibault Duplessis 45fbf530ca upgrade custom mithril 2017-03-08 13:35:52 +01:00
Thibault Duplessis 5085e6101e remove workarounds 2017-03-08 09:03:38 +01:00
Brandon Evans 7aeeeefd37 Merge branch 'master' into improvement/delete-selected-piece-on-click 2017-03-06 08:42:44 -06:00
Thibault Duplessis f768f3a0bb upgrade JS dev dependencies 2017-03-03 13:11:04 +01:00
Thibault Duplessis c5c8800014 upgrade chessground 2017-03-02 14:31:54 +01:00
Thibault Duplessis 7ee95c8cca fix editor analysis button first render 2017-03-02 13:56:41 +01:00
Thibault Duplessis e5fa5f588d upgrade chessground to fix premove promotion - closes #2746 2017-03-02 13:48:20 +01:00
Brandon Evans 7ee5ba9dad Merge branch 'master' into improvement/delete-selected-piece-on-click 2017-03-01 16:31:14 -06:00
Thibault Duplessis 81ffa4d0bb upgrade chessground to fix mobile support 2017-03-01 23:14:19 +01:00